fix(admin): polish tickets, photos purge note, drizzle contracts
Add queue banners/counts on ticket detail pages, document local-only photo purge, and harden Drizzle Kit smoke contracts after Prisma removal. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
ba82789166
commit
3bd712e744
18 files changed
+148
-78
No files matched your search
+1
-1
@@ -14,7 +14,7 @@ export function isBanActive(
|
||||
return banExpire === 0 || banExpire > now;
|
||||
}
|
||||
|
||||
/** Prisma `where` fragment for currently active bans (incl. permanent). */
|
||||
/** Filter for currently active bans (incl. permanent). */
|
||||
export function activeBanWhere(now: number = unixNow()) {
|
||||
return {
|
||||
OR: [{ banExpire: 0 }, { banExpire: { gt: now } }],
|
||||
|
||||
Reference in new issue
Block a user