mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Explicitly disallow User.name == null in model
This commit is contained in:
parent
ab567663e9
commit
26958f6641
@ -3,7 +3,7 @@ import uuid from 'uuid/v4'
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
id: { type: 'string', primary: true, default: uuid }, // TODO: should be type: 'uuid' but simplified for our tests
|
id: { type: 'string', primary: true, default: uuid }, // TODO: should be type: 'uuid' but simplified for our tests
|
||||||
actorId: { type: 'string', allow: [null] },
|
actorId: { type: 'string', allow: [null] },
|
||||||
name: { type: 'string', min: 3 },
|
name: { type: 'string', disallow: [null], min: 3 },
|
||||||
slug: 'string',
|
slug: 'string',
|
||||||
encryptedPassword: 'string',
|
encryptedPassword: 'string',
|
||||||
avatar: { type: 'string', allow: [null] },
|
avatar: { type: 'string', allow: [null] },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user