diff --git a/packages/api/src/modules/transaction/services.ts b/packages/api/src/modules/transaction/services.ts index 44a895c35..47f6659ff 100644 --- a/packages/api/src/modules/transaction/services.ts +++ b/packages/api/src/modules/transaction/services.ts @@ -205,14 +205,9 @@ export class TransactionService implements ITransactionService { }); // =============== specific for workspace =============== - if (this._filter.workspaceId || this._filter.signer) { + if (this._filter.signer) { queryBuilder.andWhere( new Brackets(qb => { - if (this._filter.workspaceId) { - qb.orWhere('workspace.id IN (:...workspace)', { - workspace: this._filter.workspaceId, - }); - } if (this._filter.signer) { qb.orWhere('members.address = :signer', { signer: this._filter.signer, @@ -361,11 +356,6 @@ export class TransactionService implements ITransactionService { if (this._filter.workspaceId || this._filter.signer) { queryBuilder.andWhere( new Brackets(qb => { - if (this._filter.workspaceId) { - qb.orWhere('workspace.id IN (:...workspace)', { - workspace: this._filter.workspaceId, - }); - } if (this._filter.signer) { qb.orWhere('members.address = :signer', { signer: this._filter.signer, diff --git a/packages/api/src/modules/user/controller.ts b/packages/api/src/modules/user/controller.ts index 69bc3e173..5a46adce9 100644 --- a/packages/api/src/modules/user/controller.ts +++ b/packages/api/src/modules/user/controller.ts @@ -79,17 +79,12 @@ export class UserController { async meTransactions(req: IMeRequest) { try { const { type } = req.query; - const { workspace, user, network } = req; + const { user, network } = req; - const { hasSingle } = await new UserService().workspacesByUser( - workspace, - user, - ); const transactions = await new TransactionService() .filter({ type, - workspaceId: [workspace.id], - signer: hasSingle ? user.address : undefined, + signer: user.address, network: network.url, }) .paginate({ page: '0', perPage: '6' })