Replace defaults by defaultsDeep
This commit is contained in:
parent
9a28dbcc02
commit
2fd7fa09b0
@ -100,7 +100,7 @@ export const scope = (server, a, b, names) => {
|
||||
reply(list);
|
||||
},
|
||||
|
||||
config: _.defaults({
|
||||
config: _.defaultsDeep({
|
||||
validate: {
|
||||
params: joi.object().keys({
|
||||
scope: joi.string().valid(...scopes),
|
||||
@ -136,7 +136,7 @@ export const scopeScope = (server, a, b, names) => {
|
||||
reply(list);
|
||||
},
|
||||
|
||||
config: _.defaults({
|
||||
config: _.defaultsDeep({
|
||||
validate: {
|
||||
params: joi.object().keys({
|
||||
scopea: joi.string().valid(...scopes.a),
|
||||
@ -205,7 +205,7 @@ export const destroyScope = (server, a, b, names) => {
|
||||
reply(list);
|
||||
},
|
||||
|
||||
config: _.defaults({
|
||||
config: _.defaultsDeep({
|
||||
validate: {
|
||||
params: joi.object().keys({
|
||||
scope: joi.string().valid(...scopes),
|
||||
|
@ -56,7 +56,7 @@ export const get = (server, model) => {
|
||||
|
||||
reply(instance);
|
||||
},
|
||||
config: _.defaults({
|
||||
config: _.defaultsDeep({
|
||||
validate: {
|
||||
params: joi.object().keys({
|
||||
id: joi.number().integer()
|
||||
@ -82,7 +82,7 @@ export const scope = (server, model) => {
|
||||
|
||||
reply(list);
|
||||
},
|
||||
config: _.defaults({
|
||||
config: _.defaultsDeep({
|
||||
validate: {
|
||||
params: joi.object().keys({
|
||||
scope: joi.string().valid(...scopes)
|
||||
@ -169,7 +169,7 @@ export const destroyScope = (server, model) => {
|
||||
|
||||
reply(list);
|
||||
},
|
||||
config: _.defaults({
|
||||
config: _.defaultsDeep({
|
||||
validate: {
|
||||
params: joi.object().keys({
|
||||
scope: joi.string().valid(...scopes)
|
||||
|
Loading…
Reference in New Issue
Block a user