mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2026-02-08 02:56:13 +01:00
added crypto history
This commit is contained in:
@@ -117,6 +117,12 @@ export class TradeService {
|
||||
}
|
||||
|
||||
const newValue = crypto.value * 1.1;
|
||||
await this.prisma.cryptoHistory.create({
|
||||
data: {
|
||||
id_crypto: crypto.id,
|
||||
value: newValue,
|
||||
},
|
||||
});
|
||||
|
||||
await this.prisma.crypto.update({
|
||||
where: {
|
||||
|
||||
Reference in New Issue
Block a user