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) {