Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
fix showDeleted reversed logic. Show non-deleted user as default query
Francis Cao8b2196b97aac
diff --git a/src/queries/prisma/user.ts b/src/queries/prisma/user.tsindex 14376fc26..467ea1e02 100644--- a/src/queries/prisma/user.ts+++ b/src/queries/prisma/user.ts@@ -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,