We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f32cecb commit a620b8eCopy full SHA for a620b8e
storage/framework/core/auth/src/client.ts
@@ -19,7 +19,9 @@ export async function createPersonalAccessClient(userId: number): Promise<Ok<str
19
})
20
.executeTakeFirst()
21
22
- if (!result?.insertId)
+ const insertId = result?.insertId || Number(result?.numInsertedOrUpdatedRows)
23
+
24
+ if (!insertId)
25
throw new HttpError(500, 'Failed to create personal access client')
26
27
return ok(secret)
0 commit comments