payment-kit 1.13.29 → 1.13.30
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/api/src/routes/products.ts +1 -9
- package/blocklet.yml +1 -1
- package/package.json +3 -3
|
@@ -182,14 +182,12 @@ router.put('/:id', auth, async (req, res) => {
|
|
|
182
182
|
if (!product) {
|
|
183
183
|
return res.status(404).json({ error: 'product not found' });
|
|
184
184
|
}
|
|
185
|
-
if (product.active === false) {
|
|
186
|
-
return res.status(403).json({ error: 'product archived' });
|
|
187
|
-
}
|
|
188
185
|
if (product.locked) {
|
|
189
186
|
return res.status(403).json({ error: 'product locked' });
|
|
190
187
|
}
|
|
191
188
|
|
|
192
189
|
const updates: Partial<Product> = pick(req.body, [
|
|
190
|
+
'status',
|
|
193
191
|
'name',
|
|
194
192
|
'description',
|
|
195
193
|
'images',
|
|
@@ -216,7 +214,6 @@ router.put('/:id/archive', auth, async (req, res) => {
|
|
|
216
214
|
if (!product) {
|
|
217
215
|
return res.status(404).json({ error: 'product not found' });
|
|
218
216
|
}
|
|
219
|
-
|
|
220
217
|
if (product.locked) {
|
|
221
218
|
return res.status(403).json({ error: 'product locked' });
|
|
222
219
|
}
|
|
@@ -235,11 +232,6 @@ router.delete('/:id', auth, async (req, res) => {
|
|
|
235
232
|
if (!product) {
|
|
236
233
|
return res.status(404).json({ error: 'product not found' });
|
|
237
234
|
}
|
|
238
|
-
|
|
239
|
-
if (product.active === false) {
|
|
240
|
-
return res.status(403).json({ error: 'product archived' });
|
|
241
|
-
}
|
|
242
|
-
|
|
243
235
|
if (product.locked) {
|
|
244
236
|
return res.status(403).json({ error: 'product locked' });
|
|
245
237
|
}
|
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.30",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "blocklet dev",
|
|
6
6
|
"eject": "vite eject",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@abtnode/types": "1.16.17-beta-703fb879",
|
|
104
104
|
"@arcblock/eslint-config": "^0.2.4",
|
|
105
105
|
"@arcblock/eslint-config-ts": "^0.2.4",
|
|
106
|
-
"@did-pay/types": "1.13.
|
|
106
|
+
"@did-pay/types": "1.13.30",
|
|
107
107
|
"@types/cookie-parser": "^1.4.4",
|
|
108
108
|
"@types/cors": "^2.8.14",
|
|
109
109
|
"@types/dotenv-flow": "^3.3.1",
|
|
@@ -140,5 +140,5 @@
|
|
|
140
140
|
"parser": "typescript"
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
|
-
"gitHead": "
|
|
143
|
+
"gitHead": "eb3b428db29ac33c697ca9ae3796d377ec779335"
|
|
144
144
|
}
|