Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Fixed analytics validators (#10531)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoizAdnan authored Aug 15, 2024
1 parent 089e39e commit eaad27e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default {
before: {
all: [
iff(isProvider('external'), verifyScope('admin', 'admin')),
() => schemaHooks.validateQuery(analyticsQueryValidator),
schemaHooks.validateQuery(analyticsQueryValidator),
schemaHooks.resolveQuery(analyticsQueryResolver)
],
find: [
Expand All @@ -126,9 +126,9 @@ export default {
discardQuery('action')
],
get: [],
create: [() => schemaHooks.validateData(analyticsDataValidator), schemaHooks.resolveData(analyticsDataResolver)],
create: [schemaHooks.validateData(analyticsDataValidator), schemaHooks.resolveData(analyticsDataResolver)],
update: [],
patch: [() => schemaHooks.validateData(analyticsPatchValidator), schemaHooks.resolveData(analyticsPatchResolver)],
patch: [schemaHooks.validateData(analyticsPatchValidator), schemaHooks.resolveData(analyticsPatchResolver)],
remove: []
},

Expand Down

0 comments on commit eaad27e

Please sign in to comment.