Skip to content

Commit

Permalink
fix: webhook body typing
Browse files Browse the repository at this point in the history
  • Loading branch information
okjodom committed Dec 8, 2024
1 parent d6219a6 commit f70c217
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/api/src/swap/swap.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Post,
Query,
} from '@nestjs/common';
import { object } from 'joi';
import { ClientProxy } from '@nestjs/microservices';
import { ApiBody, ApiOperation, ApiParam, ApiQuery } from '@nestjs/swagger';
import {
Expand Down Expand Up @@ -164,8 +165,8 @@ export class SwapController {
summary:
'Post updates to an acive swap. Used as a webhook by 3rd parties to notify transaction progress',
})
@ApiBody({})
postSwapUpdate(@Body() updates: any) {
@ApiBody({ type: object })
postSwapUpdate(@Body() updates: unknown) {
this.eventsClient.emit(process_swap_update, updates);
return { success: true };
}
Expand Down

0 comments on commit f70c217

Please sign in to comment.