diff --git a/src/models/user.ts b/src/models/user.ts index cd80ff5..4b16798 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -43,7 +43,7 @@ const User = DB.addModel({ admin: { type: Boolean }, password: { type: String }, salt: { type: String }, - mails: { type: Array, default: [] }, + mails: { type: Array, default: () => [] }, phones: { array: true, model: true,