data-validation-proximity 1.3.16 → 1.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -231,6 +231,7 @@ const userSchema = joi.object({
|
|
|
231
231
|
}),
|
|
232
232
|
preferredLanguage: joi.string().valid('en', 'fr', 'ar').optional(),
|
|
233
233
|
companyName: joi.string().optional(),
|
|
234
|
+
currency: joi.string().optional(),
|
|
234
235
|
});
|
|
235
236
|
|
|
236
237
|
exports.userSchemaValidation = createValidationMiddleware(userSchema);
|
|
@@ -326,6 +327,7 @@ const updateSchema = joi.object({
|
|
|
326
327
|
notification: joi.string().allow(null),
|
|
327
328
|
proximityRange: joi.number().min(0).max(1000),
|
|
328
329
|
preferredLanguage: joi.string().valid('en', 'fr', 'ar').optional(),
|
|
330
|
+
currency: joi.string().optional(),
|
|
329
331
|
});
|
|
330
332
|
|
|
331
333
|
exports.updateSchemaValidation = createValidationMiddleware(updateSchema, (req) => {
|