mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2026-02-08 19:16:13 +01:00
fixed prettier issues
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable prettier/prettier */
|
||||
import {
|
||||
Body,
|
||||
Controller,
|
||||
@@ -35,7 +34,7 @@ export class TradeController {
|
||||
// @GetUser() user: User,
|
||||
@Body()
|
||||
dto: TradeDto,
|
||||
@GetUser() user: User
|
||||
@GetUser() user: User,
|
||||
) {
|
||||
return this.tradeService.createTrade(user.id, dto);
|
||||
}
|
||||
@@ -45,7 +44,7 @@ export class TradeController {
|
||||
editPromoCodeById(
|
||||
@Param('id') promoCodeId: string,
|
||||
@Body() dto: TradeDto,
|
||||
@GetUser() user: User
|
||||
@GetUser() user: User,
|
||||
) {
|
||||
return this.tradeService.editTradeById(user.id, promoCodeId, dto);
|
||||
}
|
||||
|
||||
@@ -48,8 +48,7 @@ export class TradeService {
|
||||
const price = crypto.value * dto.amount_traded;
|
||||
if (buyer.dollarAvailables < price) {
|
||||
throw new ForbiddenException(
|
||||
// eslint-disable-next-line prettier/prettier
|
||||
`Acqueror ${buyer.pseudo} doesnt have enough money to make this trade`
|
||||
`Acqueror ${buyer.pseudo} doesnt have enough money to make this trade`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user