Skip to content

Commit

Permalink
fix: enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Joabesv committed Sep 10, 2024
1 parent 2f84965 commit a64981c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/core/src/models/History.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ type HistoryCoefficients = Record<number, CoefficientsMap>;

const historiesDisciplinasSchema = new Schema(
{
periodo: { type: String, required: true, enum: ['1', '2', '3'] },
periodo: {
type: String,
required: true,
enum: ['1', '2', '3', 'QS', 'qs'],
},
codigo: { type: String, required: true },
disciplina: { type: String, required: true },
ano: { type: Number, required: true },
Expand Down

0 comments on commit a64981c

Please sign in to comment.