fix: donation stats

This commit is contained in:
MTG2000
2022-05-26 19:10:17 +03:00
parent cc7a1e0cc8
commit 5c7723316b

View File

@@ -127,9 +127,8 @@ const getDonationsStats = extendType({
where: {
paid: true
}
}).then(d => d._sum.amount),
}).then(d => d._sum.amount ?? 0),
prisma.project.count()]);
// #TODO add a measurement unit for prizes & donations (eg. $ or sats or BTC)
return {
prizes: 2600,