Skip to content

Commit

Permalink
Correct error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mj52951 committed Dec 19, 2024
1 parent ceb1c46 commit 9270274
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/controllers/RoutesController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class RoutesController {
const routesResult = await this.routesService.findRoutes({});
await reply.status(200).send(routesResult);
} catch (error) {
logger.error("Error occurred when fetching transfers", error);
logger.error("Error occurred when fetching routes", error);
await reply.status(500).send({ error: "Internal server error" });
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/indexing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ describe("Indexer e2e tests", function () {
const transfers: Array<TransferResponse> = await response.json();

for (const transfer of transfers) {
if (transfer.route.fromDomain?.name.toLowerCase() == Network.SUBSTRATE) {
if (transfer.route.fromDomain.name.toLowerCase() == Network.SUBSTRATE) {
substrateDeposits++;
}
switch (transfer.route.resource?.type) {
switch (transfer.route.resource.type) {
case ResourceType.FUNGIBLE: {
fungibleDeposits++;
break;
Expand Down

0 comments on commit 9270274

Please sign in to comment.