fix showDeleted reversed logic. Show non-deleted user as default query
This commit is contained in:
1 parent
63d2bfe118
commit
8b2196b97a
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user