Fix formatting
This commit is contained in:
@@ -241,7 +241,9 @@ class PostgresAuthStore implements AuthStore {
|
||||
.where("expires_at", ">", new Date())
|
||||
.executeTakeFirst();
|
||||
|
||||
if (!row) return null;
|
||||
if (!row) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return {
|
||||
tokenId: row.token_id,
|
||||
@@ -290,7 +292,9 @@ class PostgresAuthStore implements AuthStore {
|
||||
.where(sql`LOWER(email)`, "=", email.toLowerCase())
|
||||
.executeTakeFirst();
|
||||
|
||||
if (!row) return null;
|
||||
if (!row) {
|
||||
return null;
|
||||
}
|
||||
return this.rowToUser(row);
|
||||
}
|
||||
|
||||
@@ -301,7 +305,9 @@ class PostgresAuthStore implements AuthStore {
|
||||
.where("id", "=", userId)
|
||||
.executeTakeFirst();
|
||||
|
||||
if (!row) return null;
|
||||
if (!row) {
|
||||
return null;
|
||||
}
|
||||
return this.rowToUser(row);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user