3 Replies
This error is related to prisma. Most likely missing schema.
thanks i’ll check my schema now
i did some debugging and i believe that the
userId
field needs to be unique, prisma telling me that it can only do an updateOne
when id
is specified, instead of userId
- so i fixed it by manually adding @unique
to the userId field, maybe this is a bug for prisma adaptorGitHub
fix: userId should be unique on 2fa plugin by t3duk · Pull Request ...
When using the Prisma DB adaptor (haven't tested others) when trying to generate new backup codes (when 2fa is enabled) it fails. This is because when running update (instead of updateMany)...