Skip to content
Snippets Groups Projects
Commit 2e18ab7c authored by Ole Langbehn's avatar Ole Langbehn
Browse files

fake two more methods

parent b97f6612
No related branches found
No related tags found
No related merge requests found
......@@ -99,11 +99,11 @@ const createResolvers = (config: ServerConfig) => ({
// deno-lint-ignore no-explicit-any
_parent: any,
parameters: EngagementsParameters,
) => fetchEngagements(config)(parameters),
) => config.fake ? Promise.resolve({totalResults: 0, data: []}) : fetchEngagements(config)(parameters),
cities: (
// deno-lint-ignore no-explicit-any
_parent: any,
) => fetchCities(config.voltastics),
) => config.fake ? Promise.resolve({data: []}) : fetchCities(config.voltastics),
},
Mutation: {
trackEngagementView: (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment