mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
fix: argument where of type TwoFactorWhereUniqueInput needs at least one of id arguments (#5180)
This commit is contained in:
committed by
Bereket Engida
parent
2fe59180f2
commit
2dab46d5cb
@@ -423,8 +423,7 @@ export const backupCode2fa = (opts: BackupCodeOptions) => {
|
|||||||
ctx.context.secret,
|
ctx.context.secret,
|
||||||
opts,
|
opts,
|
||||||
);
|
);
|
||||||
|
await ctx.context.adapter.updateMany({
|
||||||
await ctx.context.adapter.update({
|
|
||||||
model: twoFactorTable,
|
model: twoFactorTable,
|
||||||
update: {
|
update: {
|
||||||
backupCodes: backupCodes.encryptedBackupCodes,
|
backupCodes: backupCodes.encryptedBackupCodes,
|
||||||
|
|||||||
Reference in New Issue
Block a user