From 4cde3f0083e73c16e6cc80f6b848e857d0caf9c7 Mon Sep 17 00:00:00 2001 From: supaiku <1311798+supaiku0@users.noreply.github.com> Date: Fri, 29 Mar 2019 14:36:21 +0200 Subject: [PATCH] Update packages/core-database/src/repositories/blocks-business-repository.ts Co-Authored-By: faustbrian --- .../src/repositories/blocks-business-repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core-database/src/repositories/blocks-business-repository.ts b/packages/core-database/src/repositories/blocks-business-repository.ts index 6b560c2197..11898c836f 100644 --- a/packages/core-database/src/repositories/blocks-business-repository.ts +++ b/packages/core-database/src/repositories/blocks-business-repository.ts @@ -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) {