Skip to content

Commit

Permalink
fix(model): model decorator API bug (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldcaddy77 authored Aug 26, 2020
1 parent bfa3e54 commit 052544d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/decorators/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ export function Model({ api = {}, db = {} }: ModelOptions = {}) {
}
if (api !== false) {
factories.push(ObjectType(api) as ClassDecoratorFactory);
factories.push(registerModelWithWarthog as ClassDecoratorFactory);
}

factories.push(registerModelWithWarthog as ClassDecoratorFactory);

return composeClassDecorators(...factories);
}

0 comments on commit 052544d

Please sign in to comment.