@stamhoofd/backend 2.124.1 → 2.124.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stamhoofd/backend",
|
|
3
|
-
"version": "2.124.
|
|
3
|
+
"version": "2.124.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -57,20 +57,20 @@
|
|
|
57
57
|
"@simonbackx/simple-endpoints": "1.21.1",
|
|
58
58
|
"@simonbackx/simple-errors": "1.5.0",
|
|
59
59
|
"@simonbackx/simple-logging": "1.0.1",
|
|
60
|
-
"@stamhoofd/backend-env": "2.124.
|
|
61
|
-
"@stamhoofd/backend-i18n": "2.124.
|
|
62
|
-
"@stamhoofd/backend-middleware": "2.124.
|
|
63
|
-
"@stamhoofd/crons": "2.124.
|
|
64
|
-
"@stamhoofd/email": "2.124.
|
|
65
|
-
"@stamhoofd/excel-writer": "2.124.
|
|
66
|
-
"@stamhoofd/logging": "2.124.
|
|
67
|
-
"@stamhoofd/models": "2.124.
|
|
68
|
-
"@stamhoofd/object-differ": "2.124.
|
|
69
|
-
"@stamhoofd/queues": "2.124.
|
|
70
|
-
"@stamhoofd/sql": "2.124.
|
|
71
|
-
"@stamhoofd/structures": "2.124.
|
|
72
|
-
"@stamhoofd/types": "2.124.
|
|
73
|
-
"@stamhoofd/utility": "2.124.
|
|
60
|
+
"@stamhoofd/backend-env": "2.124.2",
|
|
61
|
+
"@stamhoofd/backend-i18n": "2.124.2",
|
|
62
|
+
"@stamhoofd/backend-middleware": "2.124.2",
|
|
63
|
+
"@stamhoofd/crons": "2.124.2",
|
|
64
|
+
"@stamhoofd/email": "2.124.2",
|
|
65
|
+
"@stamhoofd/excel-writer": "2.124.2",
|
|
66
|
+
"@stamhoofd/logging": "2.124.2",
|
|
67
|
+
"@stamhoofd/models": "2.124.2",
|
|
68
|
+
"@stamhoofd/object-differ": "2.124.2",
|
|
69
|
+
"@stamhoofd/queues": "2.124.2",
|
|
70
|
+
"@stamhoofd/sql": "2.124.2",
|
|
71
|
+
"@stamhoofd/structures": "2.124.2",
|
|
72
|
+
"@stamhoofd/types": "2.124.2",
|
|
73
|
+
"@stamhoofd/utility": "2.124.2",
|
|
74
74
|
"archiver": "7.0.1",
|
|
75
75
|
"axios": "1.16.0",
|
|
76
76
|
"base-x": "3.0.11",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"stripe": "16.12.0"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@stamhoofd/test-utils": "2.124.
|
|
94
|
+
"@stamhoofd/test-utils": "2.124.2",
|
|
95
95
|
"@types/cookie": "0.6.0",
|
|
96
96
|
"@types/luxon": "3.7.1",
|
|
97
97
|
"@types/mailparser": "3.4.6",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"publishConfig": {
|
|
108
108
|
"access": "public"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "e45e42edd908f088a0f56b5174ef2a8fbae7a446"
|
|
111
111
|
}
|
|
@@ -35,7 +35,7 @@ export class StripePayoutChecker {
|
|
|
35
35
|
async checkSettlements(checkAll = false) {
|
|
36
36
|
// Check last 2 weeks + 3 day margin, unless we check them all
|
|
37
37
|
const d = new Date();
|
|
38
|
-
d.setDate(d.getDate() -
|
|
38
|
+
d.setDate(d.getDate() - 20);
|
|
39
39
|
|
|
40
40
|
if (checkAll) {
|
|
41
41
|
d.setFullYear(2022, 11, 1);
|
|
@@ -156,7 +156,7 @@ export class StripePayoutChecker {
|
|
|
156
156
|
|
|
157
157
|
const applicationFee = balanceItem.source.application_fee_amount;
|
|
158
158
|
const otherFees = balanceItem.fee;
|
|
159
|
-
const totalFees = otherFees
|
|
159
|
+
const totalFees = Math.max(otherFees, (applicationFee ?? 0));
|
|
160
160
|
|
|
161
161
|
// Cool, we can store this in the database now.
|
|
162
162
|
|