Skip to content

Commit

Permalink
Merge branch 'fix/permit-api' into 'dev'
Browse files Browse the repository at this point in the history
fix: update unlock api response schema

See merge request ergo/rosen-bridge/watcher!258
  • Loading branch information
vorujack committed Mar 18, 2024
2 parents 2267e57 + 90d1500 commit 43bdc2e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-dodos-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rosen-bridge/watcher': patch
---

fix unlock api response schema
2 changes: 1 addition & 1 deletion src/api/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { HealthCheckSingleton } from '../utils/healthCheck';
const logger = WinstonLogger.getInstance().getLogger(import.meta.url);

export type ApiResponse = {
response: string | string[];
response: string;
status: number;
};

Expand Down
2 changes: 1 addition & 1 deletion src/api/permit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ permitRouter.post(
BigInt(RWTCount)
);
if (response.status === 200) {
res.status(200).send({ txIds: response.response });
res.status(200).send({ txId: response.response });
} else {
res.status(response.status).send({ message: response.response });
}
Expand Down

0 comments on commit 43bdc2e

Please sign in to comment.