update editing box colors functionality

This commit is contained in:
np.w
2021-02-21 19:51:47 -06:00
parent e6ff615f7c
commit e515beff62
4 changed files with 66 additions and 34 deletions
+6 -1
View File
@@ -33,7 +33,12 @@ var boxSchema = new mongoose.Schema({
description: String,
item: [itemSchema],
sort: Number,
color: Number,
color: {
type: String,
enum: ['WHITE', 'RED', 'GREEN'],
default: 0
}
//these colors are wrong
});
//compile schema into model