Skip to content

Commit

Permalink
fix: naming for endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
vasyl-ivanchuk committed Oct 30, 2023
1 parent a72ae88 commit a26bf12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/api/src/api/api.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/api/api.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a26bf12

Please sign in to comment.