Skip to content

Commit

Permalink
removing the required restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
Baalmart committed Nov 17, 2024
1 parent c488c5c commit 080b999
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/device-registry/models/Reading.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,27 @@ const SiteDetailsSchema = new Schema(
const AqiRangeSchema = new Schema(
{
good: {
min: { type: Number, required: true },
max: { type: Number, required: true },
min: { type: Number },
max: { type: Number },
},
moderate: {
min: { type: Number, required: true },
max: { type: Number, required: true },
min: { type: Number },
max: { type: Number },
},
u4sg: {
min: { type: Number, required: true },
max: { type: Number, required: true },
min: { type: Number },
max: { type: Number },
},
unhealthy: {
min: { type: Number, required: true },
max: { type: Number, required: true },
min: { type: Number },
max: { type: Number },
},
very_unhealthy: {
min: { type: Number, required: true },
max: { type: Number, required: true },
min: { type: Number },
max: { type: Number },
},
hazardous: {
min: { type: Number, required: true },
min: { type: Number },
max: { type: Number }, // max can be null
},
},
Expand Down

0 comments on commit 080b999

Please sign in to comment.