Dev__
08/12/2021, 1:18 PMPrisma.Decimal
to a float? whenever I return it always sends it as a stringRyan
08/12/2021, 1:20 PMDev__
08/12/2021, 1:20 PMEdward Baer
08/12/2021, 1:22 PMmerchantBatch = await createMerchantBatch(batches[0], options, useDate);
merchantBatch.totalAmount *= 1; // <- Prisma is not returning a Number for this, so we need to do thisDev__
08/12/2021, 1:28 PMDev__
08/12/2021, 1:29 PMconst value = decimal.toString()
parseFloat(value)
Dev__
08/12/2021, 1:38 PMSébastien ELET
08/12/2021, 2:04 PM.toNumber()
everywhere