Make comment optional on the DB side
This commit is contained in:
parent
e5a06db550
commit
7ac03cb1fd
@ -11,7 +11,7 @@ const FaultSchema = new Schema<FaultType>({
|
||||
const ReportSchema = new Schema<ReportDocument>({
|
||||
unitNumber: { type: String, required: true },
|
||||
reported: { type: String, required: true },
|
||||
comments: { type: String, required: true },
|
||||
comments: { type: String, required: false },
|
||||
utcTimestamp: { type: String, required: true },
|
||||
faults: { type: [FaultSchema], required: true },
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user