Skip to content

Commit a620b8e

Browse files
chore: wip
1 parent f32cecb commit a620b8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

storage/framework/core/auth/src/client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ export async function createPersonalAccessClient(userId: number): Promise<Ok<str
1919
})
2020
.executeTakeFirst()
2121

22-
if (!result?.insertId)
22+
const insertId = result?.insertId || Number(result?.numInsertedOrUpdatedRows)
23+
24+
if (!insertId)
2325
throw new HttpError(500, 'Failed to create personal access client')
2426

2527
return ok(secret)

0 commit comments

Comments
 (0)