Fixing wrong default value bug

This commit is contained in:
Fabian Stamm 2018-11-06 21:48:12 +01:00
parent b6f5a38f10
commit 774df52736
1 changed files with 1 additions and 1 deletions

View File

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