optimize settings helper

This commit is contained in:
Julian Krauser 2025-04-20 15:32:57 +02:00
parent 730c25a9a1
commit a8edc19f34
11 changed files with 343 additions and 119 deletions

View file

@ -23,8 +23,8 @@ export default abstract class RefreshCommandHandler {
token: refreshToken,
userId: createRefresh.userId,
expiry: createRefresh.isFromPwa
? new Date(Date.now() + ms(SettingHelper.getSetting("session.pwa_refresh_expiration") as ms.StringValue))
: new Date(Date.now() + ms(SettingHelper.getSetting("session.refresh_expiration") as ms.StringValue)),
? new Date(Date.now() + ms(SettingHelper.getSetting("session.pwa_refresh_expiration")))
: new Date(Date.now() + ms(SettingHelper.getSetting("session.refresh_expiration"))),
})
.execute()
.then((result) => {