Change default settings=null to settings={}

This commit is contained in:
Chi Vinh Le
2017-11-20 20:19:58 +01:00
parent e675d716cb
commit 511e71f63a
3 changed files with 35 additions and 13 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ const AssetSchema = new Schema({
// always after running `rectifySettings` against it.
settings: {
type: Schema.Types.Mixed,
default: null
default: {},
},
// Tags are added by the self or by administrators.