payment-kit 1.13.75 → 1.13.77
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.
|
@@ -261,7 +261,7 @@ router.post('/stash', auth, async (req, res) => {
|
|
|
261
261
|
|
|
262
262
|
let doc = await PaymentLink.findByPk(raw.id);
|
|
263
263
|
if (doc) {
|
|
264
|
-
await doc.update(formatBeforeSave(req.body));
|
|
264
|
+
await doc.update({ ...formatBeforeSave(req.body), livemode: raw.livemode });
|
|
265
265
|
} else {
|
|
266
266
|
doc = await PaymentLink.create(raw as PaymentLink);
|
|
267
267
|
}
|
|
@@ -292,7 +292,7 @@ router.post('/stash', auth, async (req, res) => {
|
|
|
292
292
|
|
|
293
293
|
let doc = await PricingTable.findByPk(raw.id);
|
|
294
294
|
if (doc) {
|
|
295
|
-
await doc.update(formatPricingTable(req.body));
|
|
295
|
+
await doc.update({ ...formatPricingTable(req.body), livemode: raw.livemode });
|
|
296
296
|
} else {
|
|
297
297
|
doc = await PricingTable.create(raw as PricingTable);
|
|
298
298
|
}
|
|
@@ -677,7 +677,7 @@ router.put('/:id', auth, async (req, res) => {
|
|
|
677
677
|
// Clean up subscriptions that have invalid invoices and payments
|
|
678
678
|
router.delete('/cleanup', auth, async (req, res) => {
|
|
679
679
|
const status = String(req.query.status || 'uncollectible');
|
|
680
|
-
if (['open', 'uncollectible'].includes(status)) {
|
|
680
|
+
if (['open', 'uncollectible'].includes(status) === false) {
|
|
681
681
|
res.json({ error: 'status must be either open or uncollectible' });
|
|
682
682
|
return;
|
|
683
683
|
}
|
package/blocklet.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payment-kit",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.77",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "COMPONENT_STORE_URL=https://test.store.blocklet.dev blocklet dev",
|
|
6
6
|
"eject": "vite eject",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"@abtnode/types": "^1.16.20",
|
|
110
110
|
"@arcblock/eslint-config": "^0.2.4",
|
|
111
111
|
"@arcblock/eslint-config-ts": "^0.2.4",
|
|
112
|
-
"@did-pay/types": "1.13.
|
|
112
|
+
"@did-pay/types": "1.13.77",
|
|
113
113
|
"@types/cookie-parser": "^1.4.6",
|
|
114
114
|
"@types/cors": "^2.8.17",
|
|
115
115
|
"@types/dotenv-flow": "^3.3.3",
|
|
@@ -148,5 +148,5 @@
|
|
|
148
148
|
"parser": "typescript"
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "216a753f4625b3b2712dabac88d20ea680d9eff9"
|
|
152
152
|
}
|