Skip to content

Commit

Permalink
feat(core/create): doesn't add an empty intercept array by default on…
Browse files Browse the repository at this point in the history
… service creation
  • Loading branch information
rafamel committed Oct 18, 2019
1 parent a7c0faa commit e8206c0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/core/src/create/services/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export function query<I, O>(
...query,
kind: 'query',
types: parseTypes(query.types),
intercepts: query.intercepts || [],
async resolve(...args: any) {
return query.resolve.apply(this, args);
}
Expand All @@ -60,7 +59,6 @@ export function mutation<I, O>(
...mutation,
kind: 'mutation',
types: parseTypes(mutation.types),
intercepts: mutation.intercepts || [],
async resolve(...args: any) {
return mutation.resolve.apply(this, args);
}
Expand All @@ -77,7 +75,6 @@ export function subscription<I, O>(
...subscription,
kind: 'subscription',
types: parseTypes(subscription.types),
intercepts: subscription.intercepts || [],
resolve(...args: any) {
const get = async (): Promise<Observable<O>> => {
return subscription.resolve.apply(this, args);
Expand Down

0 comments on commit e8206c0

Please sign in to comment.