Skip to content

Commit d460aa5

Browse files
author
Rafael Marinho
committed
fix Sorbet type checking error
1 parent 219acc2 commit d460aa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/stream-chat/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ def delete_channels(cids, hard_delete: false)
688688
# Revoke tokens for an application issued since the given date.
689689
sig { params(before: T.any(DateTime, String)).returns(StreamChat::StreamResponse) }
690690
def revoke_tokens(before)
691-
before = T.cast(before, DateTime).rfc3339 if before.instance_of?(DateTime)
691+
before = before.rfc3339 if before.instance_of?(DateTime)
692692
update_app_settings({ 'revoke_tokens_issued_before' => before })
693693
end
694694

@@ -701,7 +701,7 @@ def revoke_user_token(user_id, before)
701701
# Revoke tokens for users issued since.
702702
sig { params(user_ids: T::Array[String], before: T.any(DateTime, String)).returns(StreamChat::StreamResponse) }
703703
def revoke_users_token(user_ids, before)
704-
before = T.cast(before, DateTime).rfc3339 if before.instance_of?(DateTime)
704+
before = before.rfc3339 if before.instance_of?(DateTime)
705705

706706
updates = []
707707
user_ids.map do |user_id|

0 commit comments

Comments
 (0)