From 47e0652b4a98916d4a1d012fbec61afd73a30565 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 16 Nov 2017 18:40:50 +0100 Subject: Optimize account creation --- server/models/account/account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/models/account') diff --git a/server/models/account/account.ts b/server/models/account/account.ts index 84461a2eb..c370e1709 100644 --- a/server/models/account/account.ts +++ b/server/models/account/account.ts @@ -75,7 +75,7 @@ export default function defineAccount (sequelize: Sequelize.Sequelize, DataTypes }, publicKey: { type: DataTypes.STRING(CONSTRAINTS_FIELDS.ACCOUNTS.PUBLIC_KEY.max), - allowNull: false, + allowNull: true, validate: { publicKeyValid: value => { const res = isAccountPublicKeyValid(value) -- cgit v1.2.3