Skip to content

Commit

Permalink
Remove admission entry
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Timothy-Gonzalez committed Nov 3, 2023
1 parent 466d8e3 commit 7e1a3da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
17 changes: 0 additions & 17 deletions src/database/admission-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
5 changes: 1 addition & 4 deletions src/database/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -24,7 +24,6 @@ enum AuthCollection {

enum AdmissionCollection {
DECISION = "decision",
ENTRIES = "entries",
}

enum EventCollection {
Expand Down Expand Up @@ -63,7 +62,6 @@ export default class Models {
static AuthInfo: mongoose.Model<AuthInfo> = undefined!;
// Admission
static AdmissionDecision: mongoose.Model<AdmissionDecision> = undefined!;
static AdmissionEntry: mongoose.Model<AdmissionEntry> = undefined!;
// Event
static StaffEvent: mongoose.Model<StaffEvent> = undefined!;
static PublicEvent: mongoose.Model<PublicEvent> = undefined!;
Expand All @@ -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);
Expand Down

0 comments on commit 7e1a3da

Please sign in to comment.