fix: updates from error logs

This commit is contained in:
Mythie
2023-11-04 13:14:20 +11:00
parent 16af21ba25
commit 76c8dfa907
5 changed files with 13 additions and 5 deletions

View File

@ -91,8 +91,9 @@ export const NEXT_AUTH_OPTIONS: AuthOptions = {
}
if (
!merged.lastSignedIn ||
DateTime.fromISO(merged.lastSignedIn).plus({ hours: 1 }) <= DateTime.now()
merged.id &&
(!merged.lastSignedIn ||
DateTime.fromISO(merged.lastSignedIn).plus({ hours: 1 }) <= DateTime.now())
) {
merged.lastSignedIn = new Date().toISOString();