Implement portal frontend for events

This commit is contained in:
Dominic Ferrando
2026-07-17 10:06:53 -04:00
parent a2bc5f7362
commit ed17f4baf8
5 changed files with 261 additions and 10 deletions
+1
View File
@@ -367,3 +367,4 @@ app.listen(3000, async () => {
});
export type API = typeof app
export { type EventStatus } from "./services/events";
+1 -1
View File
@@ -54,7 +54,7 @@ export class EventsService {
} = {}, trx?: Transaction<DB>) {
return await (trx ?? db).selectFrom("events")
.select([
"id", "type", "source", "started_at", "ended_at", "available_at",
"id", "group", "type", "source", "started_at", "ended_at", "available_at",
"errors", "rate_limits", "has_failed", "last_error", "created_at",
])
.$if(opt.filter?.group !== undefined, (qb) => qb.where("group", "=", opt.filter!.group!))