@@ -64,8 +64,14 @@ export class TradeController {
|
||||
}
|
||||
|
||||
@Post(':id/confirm-receive')
|
||||
confirmReceive(@CurrentUser() user: AuthUser, @Param('id') id: string) {
|
||||
return this.tradeService.confirmReceive(user.actorId, BigInt(id));
|
||||
confirmReceive(
|
||||
@CurrentUser() user: AuthUser,
|
||||
@Param('id') id: string,
|
||||
@Body() body?: { onSitePickup?: boolean },
|
||||
) {
|
||||
return this.tradeService.confirmReceive(user.actorId, BigInt(id), {
|
||||
onSitePickup: !!body?.onSitePickup,
|
||||
});
|
||||
}
|
||||
|
||||
@Post(':id/refund-requests')
|
||||
|
||||
Reference in New Issue
Block a user