Indxgo
06/11/2021, 4:43 PMawait prisma.account
.findFirst({
where: {
id: user.id,
authorization: user.authorization,
},
});
but I can use
await prisma.account
.findMany({
where: {
id: user.id,
authorization: user.authorization,
},
});
If I use the first example I get an error:
Argument where of type AccountWhereUniqueInput needs exactly one argument, but you provided id and authorization. Please choose one. Available args:
Nevermind, the second example was working yesterday night but now both give the error, any help?Ryan
06/14/2021, 5:28 AMprisma generate and check again.