mirror of https://github.com/zulip/zulip.git
invites: Broaden invite_expires_in_minutes type.
It may be internally recomputed using .total_seconds() / 60, which is a float. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
8b47b5dc34
commit
042f28dca8
|
@ -403,7 +403,7 @@ def do_send_user_invite_email(
|
||||||
*,
|
*,
|
||||||
confirmation: Optional[Confirmation] = None,
|
confirmation: Optional[Confirmation] = None,
|
||||||
event_time: Optional[datetime] = None,
|
event_time: Optional[datetime] = None,
|
||||||
invite_expires_in_minutes: Optional[int] = None,
|
invite_expires_in_minutes: Optional[float] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
# Take a lock on the realm, so we can check for invitation limits without races
|
# 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)
|
realm_id = assert_is_not_none(prereg_user.realm_id)
|
||||||
|
|
Loading…
Reference in New Issue