Fixing wrong default value bug

This commit is contained in:
Fabian Stamm 2018-11-06 21:48:12 +01:00
parent b6f5a38f10
commit 774df52736

View File

@ -43,7 +43,7 @@ const User = DB.addModel<IUser>({
admin: { type: Boolean }, admin: { type: Boolean },
password: { type: String }, password: { type: String },
salt: { type: String }, salt: { type: String },
mails: { type: Array, default: [] }, mails: { type: Array, default: () => [] },
phones: { phones: {
array: true, array: true,
model: true, model: true,