update editing box colors functionality
This commit is contained in:
+6
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user