fixed an error in application loading

This commit is contained in:
2025-10-25 13:57:57 -04:00
parent d1e45891e2
commit 254a2d2ce5
2 changed files with 11 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ export interface ApplicationRow {
approved_at: string | null;
denied_at: string | null;
app_status: Status; // generated column
app_status: ApplicationStatus; // generated column
decision_at: string | null; // generated column
// present when you join members (e.g., SELECT a.*, m.name AS member_name)
@@ -54,4 +54,10 @@ export interface ApplicationListRow {
member_name: string | null; // because LEFT JOIN means it might be null
submitted_at: Date;
app_status: string; // or enum if you have one
}
export enum ApplicationStatus {
Pending = "Pending",
Accepted = "Accepted",
Denied = "Denied",
}