diff --git a/.changeset/fresh-dodos-warn.md b/.changeset/fresh-dodos-warn.md new file mode 100644 index 0000000..8dfd8cc --- /dev/null +++ b/.changeset/fresh-dodos-warn.md @@ -0,0 +1,5 @@ +--- +'@rosen-bridge/watcher': patch +--- + +fix unlock api response schema diff --git a/src/api/Transaction.ts b/src/api/Transaction.ts index 076d17d..c75ad35 100644 --- a/src/api/Transaction.ts +++ b/src/api/Transaction.ts @@ -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; }; diff --git a/src/api/permit.ts b/src/api/permit.ts index fec48ba..4d2b1eb 100644 --- a/src/api/permit.ts +++ b/src/api/permit.ts @@ -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 }); }