Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 8ba2461

Browse files
Allow empty string for certifierId
1 parent 6255940 commit 8ba2461

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/achievement/service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ const methods = helper.getServiceMethods(
1212
achievementsProviderId: joi.string().required(),
1313
name: joi.string().required(),
1414
uri: joi.string(),
15-
certifierId: joi.string().allow(),
15+
certifierId: joi.string().allow(''),
1616
certifiedDate: joi.date().format('iso')
1717
},
1818
{ // patch request body joi schema
1919
userId: joi.string().required(),
2020
achievementsProviderId: joi.string().required(),
2121
name: joi.string(),
2222
uri: joi.string(),
23-
certifierId: joi.string().allow(),
23+
certifierId: joi.string().allow(''),
2424
certifiedDate: joi.date().format('iso')
2525
},
2626
{ // search request query joi schema

0 commit comments

Comments
 (0)