mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 12:27:44 +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,
|
||||
opts,
|
||||
);
|
||||
|
||||
await ctx.context.adapter.update({
|
||||
await ctx.context.adapter.updateMany({
|
||||
model: twoFactorTable,
|
||||
update: {
|
||||
backupCodes: backupCodes.encryptedBackupCodes,
|
||||
|
||||
Reference in New Issue
Block a user