Add counting of donations to static XMR address to api-helpers.ts

This commit is contained in:
Rucknium
2023-11-13 16:24:20 +00:00
committed by GitHub
parent 7fc70393a2
commit f508beb04c

View File

@@ -86,7 +86,7 @@ export async function fetchGetJSONAuthedBTCPay(
let totaldonationsinfiatxmr = 0
let totaldonationsinfiatbtc = 0
for(let i=0;i<data.length;i++){
if (data[i].metadata.orderId != slug) {
if (data[i].metadata.orderId != slug && data[i].metadata.orderId != `${slug}_STATIC`) {
continue
}
const id = data[i].id