Skip to content

Commit

Permalink
Merge pull request #19 from indigotech/bugfix/pagination
Browse files Browse the repository at this point in the history
Bugfix - Fixing null returns for @Pagination
  • Loading branch information
felipesabino authored Oct 25, 2017
2 parents 2f634ac + 00a69b0 commit def85da
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 @@ -407,7 +407,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 @@ -454,7 +454,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 def85da

Please sign in to comment.