payment-kit 1.13.299 → 1.13.301

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.
@@ -202,12 +202,13 @@ router.get('/search', auth, async (req, res) => {
202
202
  if (typeof livemode === 'boolean') {
203
203
  where.livemode = livemode;
204
204
  }
205
+
205
206
  const { rows: list, count } = await Product.findAndCountAll({
206
207
  where,
207
208
  order: [['created_at', 'DESC']],
208
209
  offset: (page - 1) * pageSize,
209
210
  limit: pageSize,
210
- include: [{ model: Price, as: 'prices' }],
211
+ include: [{ model: Price, as: 'prices', separate: true }],
211
212
  });
212
213
 
213
214
  res.json({ count, list });
@@ -19,3 +19,7 @@ export const sequelize = new Sequelize({
19
19
  logging: process.env.SQL_LOG === '1',
20
20
  storage: join(env.dataDir, 'payment-kit.db'),
21
21
  });
22
+
23
+ sequelize.query('pragma journal_mode = WAL;');
24
+ sequelize.query('pragma synchronous = normal;');
25
+ sequelize.query('pragma journal_size_limit = 67108864;');
package/blocklet.yml CHANGED
@@ -14,7 +14,7 @@ repository:
14
14
  type: git
15
15
  url: git+https://github.com/blocklet/payment-kit.git
16
16
  specVersion: 1.2.8
17
- version: 1.13.299
17
+ version: 1.13.301
18
18
  logo: logo.png
19
19
  files:
20
20
  - dist
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payment-kit",
3
- "version": "1.13.299",
3
+ "version": "1.13.301",
4
4
  "scripts": {
5
5
  "dev": "blocklet dev --open",
6
6
  "eject": "vite eject",
@@ -52,7 +52,7 @@
52
52
  "@arcblock/validator": "^1.18.124",
53
53
  "@blocklet/js-sdk": "1.16.28",
54
54
  "@blocklet/logger": "1.16.28",
55
- "@blocklet/payment-react": "1.13.299",
55
+ "@blocklet/payment-react": "1.13.301",
56
56
  "@blocklet/sdk": "1.16.28",
57
57
  "@blocklet/ui-react": "^2.10.3",
58
58
  "@blocklet/uploader": "^0.1.18",
@@ -118,7 +118,7 @@
118
118
  "devDependencies": {
119
119
  "@abtnode/types": "1.16.28",
120
120
  "@arcblock/eslint-config-ts": "^0.3.2",
121
- "@blocklet/payment-types": "1.13.299",
121
+ "@blocklet/payment-types": "1.13.301",
122
122
  "@types/cookie-parser": "^1.4.7",
123
123
  "@types/cors": "^2.8.17",
124
124
  "@types/debug": "^4.1.12",
@@ -160,5 +160,5 @@
160
160
  "parser": "typescript"
161
161
  }
162
162
  },
163
- "gitHead": "1cda070f8f82a765a14eb6303c4eb1343dbd91da"
163
+ "gitHead": "51232b3901a744f8340c345dc738552f9df899a2"
164
164
  }