From 7e1a3dad56f7020d33e18960e51ac0cddbe366cf Mon Sep 17 00:00:00 2001 From: Timothy-Gonzalez <105177619+Timothy-Gonzalez@users.noreply.github.com> Date: Thu, 2 Nov 2023 19:01:55 -0500 Subject: [PATCH] Remove admission entry No longer used Not as sure if admission makes sense as a name anymore, we should revisit later on. It makes more sense from an external perspective, so we'll stick with it for now. --- src/database/admission-db.ts | 17 ----------------- src/database/models.ts | 5 +---- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/src/database/admission-db.ts b/src/database/admission-db.ts index 6ce670db..4cbd6451 100644 --- a/src/database/admission-db.ts +++ b/src/database/admission-db.ts @@ -29,20 +29,3 @@ export class AdmissionDecision { @prop({ required: true }) public emailSent: boolean; } - -export class AdmissionEntry { - @prop({ required: true }) - public userId: string; - - @prop({ required: true }) - public wave: number; - - @prop({ required: true }) - public reviewer: string; - - @prop({ required: true }) - public timestamp: number; - - @prop({ required: true }) - public decision: DecisionStatus; -} diff --git a/src/database/models.ts b/src/database/models.ts index 9340d0e3..50f71cdb 100644 --- a/src/database/models.ts +++ b/src/database/models.ts @@ -5,7 +5,7 @@ import { Database, generateConfig } from "../database.js"; import { AuthInfo } from "./auth-db.js"; import { AttendeeMetadata, AttendeeProfile } from "./attendee-db.js"; -import { AdmissionEntry, AdmissionDecision } from "./admission-db.js"; +import { AdmissionDecision } from "./admission-db.js"; import { EventAttendance, EventMetadata, PublicEvent, StaffEvent } from "./event-db.js"; import { NewsletterSubscription } from "./newsletter-db.js"; import { RegistrationApplication, RegistrationInfo } from "./registration-db.js"; @@ -24,7 +24,6 @@ enum AuthCollection { enum AdmissionCollection { DECISION = "decision", - ENTRIES = "entries", } enum EventCollection { @@ -63,7 +62,6 @@ export default class Models { static AuthInfo: mongoose.Model = undefined!; // Admission static AdmissionDecision: mongoose.Model = undefined!; - static AdmissionEntry: mongoose.Model = undefined!; // Event static StaffEvent: mongoose.Model = undefined!; static PublicEvent: mongoose.Model = undefined!; @@ -83,7 +81,6 @@ export default class Models { this.AttendeeProfile = getModel(AttendeeProfile, Database.ATTENDEE, AttendeeCollection.PROFILE); this.AuthInfo = getModel(AuthInfo, Database.AUTH, AuthCollection.INFO); this.AdmissionDecision = getModel(AdmissionDecision, Database.ADMISSION, AdmissionCollection.DECISION); - this.AdmissionEntry = getModel(AdmissionEntry, Database.ADMISSION, AdmissionCollection.ENTRIES); this.StaffEvent = getModel(StaffEvent, Database.EVENT, EventCollection.STAFF_EVENTS); this.PublicEvent = getModel(PublicEvent, Database.EVENT, EventCollection.PUBLIC_EVENTS); this.EventMetadata = getModel(EventMetadata, Database.EVENT, EventCollection.METADATA);