Skip to content

Commit 0313e29

Browse files
committed
Update account.ts
1 parent 5907311 commit 0313e29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/auth/entries/account/account.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export const account = new EntryType<Account>("account", {
9999
handler({ account }) {
100100
const userIds = new Set<string>();
101101
for (const { user, user__title } of account.users.data) {
102+
if (!user) continue; // Skip if user is not set
102103
if (userIds.has(user)) {
103104
raiseORMException(
104105
`User with ID ${user} is already associated with this account.`,

0 commit comments

Comments
 (0)