mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
fix showDeleted reversed logic. Show non-deleted user as default query
This commit is contained in:
parent
63d2bfe118
commit
8b2196b97a
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ async function findUser(criteria: Prisma.UserFindUniqueArgs, options: GetUserOpt
|
||||||
...criteria,
|
...criteria,
|
||||||
where: {
|
where: {
|
||||||
...criteria.where,
|
...criteria.where,
|
||||||
...(showDeleted && { deletedAt: null }),
|
...(showDeleted ? {} : { deletedAt: null }),
|
||||||
},
|
},
|
||||||
select: {
|
select: {
|
||||||
id: true,
|
id: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue