Skip to content

Commit be4838c

Browse files
authored
Fixed bug where corps without streck entries wouldn't show in form (#280)
1 parent 344f846 commit be4838c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/server/trpc/router/streck.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ const getBalances = async (
129129
FROM Corps
130130
LEFT JOIN StreckTransaction ON Corps.id = corpsId
131131
LEFT JOIN StreckList ON streckListId = StreckList.id
132-
WHERE Corps.id IN (${Prisma.join(additionalCorps)})
133-
AND Corps.id NOT IN (${Prisma.join(excludeCorps)})
134132
AND StreckList.time <= ${time}
135133
AND deleted = false
134+
WHERE Corps.id IN (${Prisma.join(additionalCorps)})
135+
AND Corps.id NOT IN (${Prisma.join(excludeCorps)})
136136
GROUP BY Corps.id
137137
ORDER BY
138138
lastName,

0 commit comments

Comments
 (0)