Skip to content

Commit

Permalink
Fixing null returns for @Pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
felipesabino committed Oct 24, 2017
1 parent 2590778 commit 00a69b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ export function Field(option?: FieldOption) {
console.warn('Field can\'t be pagination enabled', propertyKey);
return;
}
setPaginationMetadata(target, propertyKey, methodDescriptor);
return setPaginationMetadata(target, propertyKey, methodDescriptor);
}
}

Expand Down Expand Up @@ -453,7 +453,7 @@ export function Before(middleware: Middleware) {
export function Pagination() {
return function (target: any, propertyKey: any, methodDescriptor: any) {

setPaginationMetadata(target, propertyKey, methodDescriptor);
return setPaginationMetadata(target, propertyKey, methodDescriptor);

} as Function;
}
Expand Down

0 comments on commit 00a69b0

Please sign in to comment.