renamed crypto search params

This commit is contained in:
Kevsl 2024-06-08 14:19:59 +02:00
parent 372ac6fdfb
commit db61546414

View File

@ -130,7 +130,7 @@ export class CryptoService {
value: newCryptoValue, value: newCryptoValue,
}, },
}); });
const newQuantity = (crypto.quantity -= 1); const newQuantity = (crypto.quantity -= dto.amount);
return this.prisma.crypto.update({ return this.prisma.crypto.update({
where: { where: {
id: dto.id_crypto, id: dto.id_crypto,