This commit is contained in:
Carl-Gerhard Lindesvärd
2026-03-06 09:11:09 +01:00
parent 90881e5ffb
commit 289ffb7d6d
4 changed files with 10 additions and 4 deletions

View File

@@ -374,6 +374,7 @@ export const chartRouter = createTRPCRouter({
.select<{ values: string }>([`distinct ${selectExpr} as values`])
.from(TABLE_NAMES.groups, true)
.where('project_id', '=', projectId)
.where('deleted', '=', 0)
.where(selectExpr, '!=', '')
.where(selectExpr, 'IS NOT NULL', null)
.orderBy('created_at', 'DESC')