mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2025-07-09 06:00:12 +02:00
renamed crypto search params
This commit is contained in:
parent
372ac6fdfb
commit
db61546414
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user