Reduce space wastage

This commit is contained in:
2024-04-10 18:35:51 +02:00
parent 8900c44e51
commit f69389c461
10 changed files with 27 additions and 63 deletions

View File

@@ -94,7 +94,9 @@ const get_page = async (url) => {
v.method === "paypal" &&
v.status === "paid" &&
(new Date(v.createdAt)) > startDate &&
(new Date(v.createdAt)) < endDate
(new Date(v.createdAt)) < endDate &&
(v.amountRefunded === undefined || v.amountRefunded.value === "0.00") &&
(v.amountChargedBack === undefined || v.amountChargedBack.value === "0.00")
) {
payments.push(v)
added++