From 774df52736f9052a236f83c439c46052e8cde02c Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Tue, 6 Nov 2018 21:48:12 +0100 Subject: [PATCH] Fixing wrong default value bug --- src/models/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,