Fix: crud: GET id's can be strings or numbers
This commit is contained in:
parent
3f419284be
commit
0698a8a3ad
@ -63,7 +63,7 @@ export const get = (server, model) => {
|
|||||||
config: _.defaultsDeep({
|
config: _.defaultsDeep({
|
||||||
validate: {
|
validate: {
|
||||||
params: joi.object().keys({
|
params: joi.object().keys({
|
||||||
id: joi.number().integer()
|
id: joi.any()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, defaultConfig)
|
}, defaultConfig)
|
||||||
|
Loading…
Reference in New Issue
Block a user