先允许user的nickname为空

This commit is contained in:
Xu Chang 2022-05-09 16:52:36 +08:00
parent 8c5494cafe
commit 22294a1073
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ const checkers: Checker<EntityDict, 'user', GeneralRuntimeContext<EntityDict>> [
action: 'create',
entity: 'user',
checker: async ({ operation }) => {
const { action, data } = operation;
/* const { action, data } = operation;
if (data instanceof Array) {
data.forEach(
ele => {
@ -20,7 +20,7 @@ const checkers: Checker<EntityDict, 'user', GeneralRuntimeContext<EntityDict>> [
}
else {
checkAttributesNotNull(data, ['nickname']);
}
} */
return 0;
},
}