Explicitly disallow User.name == null in model

This commit is contained in:
Robert Schäfer 2019-08-02 23:44:35 +02:00
parent ab567663e9
commit 26958f6641

View File

@ -3,7 +3,7 @@ import uuid from 'uuid/v4'
module.exports = {
id: { type: 'string', primary: true, default: uuid }, // TODO: should be type: 'uuid' but simplified for our tests
actorId: { type: 'string', allow: [null] },
name: { type: 'string', min: 3 },
name: { type: 'string', disallow: [null], min: 3 },
slug: 'string',
encryptedPassword: 'string',
avatar: { type: 'string', allow: [null] },