Skip to content

Commit

Permalink
DateClimbed is nullable (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
zichongkao committed Jun 5, 2023
1 parent eb9f39f commit f116f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/TickSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const TickSchema = new Schema<TickType>({
userId: { type: Schema.Types.String, required: true, index: true },
style: { type: Schema.Types.String, required: true, default: '' },
attemptType: { type: Schema.Types.String, required: true, index: true, default: '' },
dateClimbed: { type: Schema.Types.Date, required: true },
dateClimbed: { type: Schema.Types.Date },
grade: { type: Schema.Types.String, required: true, index: true },
// Bear in mind that these enum types must be kept in sync with the TickSource enum
source: { type: Schema.Types.String, enum: ['MP', 'OB'] as TickSource[], required: true, index: true }
Expand Down

0 comments on commit f116f94

Please sign in to comment.