Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -29,7 +29,7 @@ exports.register = async(ctx) => { | ... | @@ -29,7 +29,7 @@ exports.register = async(ctx) => { |
29 | userNm : Joi.string().required(), | 29 | userNm : Joi.string().required(), |
30 | birth : Joi.string().required(), | 30 | birth : Joi.string().required(), |
31 | contact : Joi.string().required(), | 31 | contact : Joi.string().required(), |
32 | - deviceToken : Joi.string(), | 32 | + deviceToken : Joi.string().allow(null), |
33 | }); | 33 | }); |
34 | 34 | ||
35 | const result = schema.validate(ctx.request.body); | 35 | const result = schema.validate(ctx.request.body); |
... | @@ -218,7 +218,7 @@ exports.login = async(ctx) => { | ... | @@ -218,7 +218,7 @@ exports.login = async(ctx) => { |
218 | const schema = Joi.object().keys({ | 218 | const schema = Joi.object().keys({ |
219 | userId : Joi.string().email().max(50).required(), | 219 | userId : Joi.string().email().max(50).required(), |
220 | password : Joi.string().required(), | 220 | password : Joi.string().required(), |
221 | - deviceToken : Joi.string(), | 221 | + deviceToken : Joi.string().allow(null), |
222 | }); | 222 | }); |
223 | 223 | ||
224 | const result = schema.validate(ctx.request.body); | 224 | const result = schema.validate(ctx.request.body); | ... | ... |
-
Please register or login to post a comment