Fix time mathing

This commit is contained in:
2023-11-19 18:13:26 +11:00
parent 887f0b71f7
commit f9c48118aa

View File

@@ -7,7 +7,7 @@ module Admin
def call(token:)
token = login_tokens_repo.by_token(token: token)
if (Time.now - token.created_at) > 15
if (Time.now - token.created_at) > (15 * 60)
login_tokens_repo.delete_all
return nil
end