fixed prettier issues

This commit is contained in:
Kevsl
2024-06-07 11:17:55 +02:00
parent 7648b6432a
commit 5b2056295f
6 changed files with 10 additions and 17 deletions

View File

@@ -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);
}

View File

@@ -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`,
);
}