Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

invites: Broaden invite_expires_in_minutes type.

Anders Kaseorg042f28dca863
diff --git a/zerver/actions/invites.py b/zerver/actions/invites.py
index f58cc42f2c3..26d79f3556b 100644
--- a/zerver/actions/invites.py
+++ b/zerver/actions/invites.py
@@ -403,7 +403,7 @@ def do_send_user_invite_email(
*,
confirmation: Optional[Confirmation] = None,
event_time: Optional[datetime] = None,
- invite_expires_in_minutes: Optional[int] = None,
+ invite_expires_in_minutes: Optional[float] = None,
) -> None:
# Take a lock on the realm, so we can check for invitation limits without races
realm_id = assert_is_not_none(prereg_user.realm_id)