fix: argument where of type TwoFactorWhereUniqueInput needs at least one of id arguments (#5180)

This commit is contained in:
alexstrnik
2025-10-11 21:15:03 +04:00
committed by Bereket Engida
parent 2fe59180f2
commit 2dab46d5cb

View File

@@ -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,