Skip to content

Commit

Permalink
Update packages/core-database/src/repositories/blocks-business-reposi…
Browse files Browse the repository at this point in the history
…tory.ts

Co-Authored-By: faustbrian <faustbrian@users.noreply.github.com>
  • Loading branch information
spkjp and faustbrian authored Mar 29, 2019
1 parent 62a0ac1 commit 4cde3f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class BlocksBusinessRepository implements Database.IBlocksBusinessReposit
}

public async findAllByGenerator(generatorPublicKey: string, paginate: Database.SearchPaginate) {
return this.findAll({ ...{ generatorPublicKey }, ...paginate });
return this.findAll({ generatorPublicKey, ...paginate });
}

public async findLastByPublicKey(generatorPublicKey: string) {
Expand Down

0 comments on commit 4cde3f0

Please sign in to comment.