From a26bf12b8bd813f5d87b57c4f40b0f4c5d6bb7d4 Mon Sep 17 00:00:00 2001 From: Vasyl Ivanchuk Date: Mon, 30 Oct 2023 17:49:25 +0200 Subject: [PATCH] fix: naming for endpoints --- packages/api/src/api/api.controller.spec.ts | 8 ++++---- packages/api/src/api/api.controller.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/api/src/api/api.controller.spec.ts b/packages/api/src/api/api.controller.spec.ts index 9a3b537997..a3db8db220 100644 --- a/packages/api/src/api/api.controller.spec.ts +++ b/packages/api/src/api/api.controller.spec.ts @@ -108,9 +108,9 @@ describe("ApiController", () => { }); }); - describe("getAccountInternalTransactionsForAddress", () => { + describe("getAccountInternalTransactions", () => { it("returns null as it is defined only to appear in docs and cannot be called", async () => { - const result = await controller.getAccountInternalTransactionsForAddress( + const result = await controller.getAccountInternalTransactions( { page: 1, offset: 10, @@ -122,9 +122,9 @@ describe("ApiController", () => { }); }); - describe("getAccountInternalTransactionsForTx", () => { + describe("getTransactionInternalTransactions", () => { it("returns null as it is defined only to appear in docs and cannot be called", async () => { - const result = await controller.getAccountInternalTransactionsForTx( + const result = await controller.getTransactionInternalTransactions( { page: 1, offset: 10, diff --git a/packages/api/src/api/api.controller.ts b/packages/api/src/api/api.controller.ts index edda9b7bc8..c5de9e388d 100644 --- a/packages/api/src/api/api.controller.ts +++ b/packages/api/src/api/api.controller.ts @@ -260,7 +260,7 @@ export class ApiController { description: "Internal transactions list", type: AccountInternalTransactionsResponseDto, }) - public async getAccountInternalTransactionsForAddress( + public async getAccountInternalTransactions( // eslint-disable-next-line @typescript-eslint/no-unused-vars @Query() pagingOptions: PagingOptionsWithMaxItemsLimitDto, // eslint-disable-next-line @typescript-eslint/no-unused-vars @@ -297,7 +297,7 @@ export class ApiController { description: "Internal transactions list", type: AccountInternalTransactionsResponseDto, }) - public async getAccountInternalTransactionsForTx( + public async getTransactionInternalTransactions( // eslint-disable-next-line @typescript-eslint/no-unused-vars @Query() pagingOptions: PagingOptionsWithMaxItemsLimitDto, // eslint-disable-next-line @typescript-eslint/no-unused-vars