fix showDeleted reversed logic. Show non-deleted user as default query

This commit is contained in:
Francis Cao 2026-01-22 11:18:14 -08:00
parent 63d2bfe118
commit 8b2196b97a

View file

@ -18,7 +18,7 @@ async function findUser(criteria: Prisma.UserFindUniqueArgs, options: GetUserOpt
...criteria,
where: {
...criteria.where,
...(showDeleted && { deletedAt: null }),
...(showDeleted ? {} : { deletedAt: null }),
},
select: {
id: true,