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,
opts,
);
await ctx.context.adapter.update({
await ctx.context.adapter.updateMany({
model: twoFactorTable,
update: {
backupCodes: backupCodes.encryptedBackupCodes,