befly 3.21.0 → 3.21.1

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/sync/dev.js +3 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "befly",
3
- "version": "3.21.0",
4
- "gitHead": "bdc30cd18f3fe6a692d170ae2146ca9ba4e62edc",
3
+ "version": "3.21.1",
4
+ "gitHead": "9dd9b9f2547fe46fe861a95c70e160cae1d74b26",
5
5
  "private": false,
6
6
  "description": "Befly - 为 Bun 专属打造的 JavaScript API 接口框架核心引擎",
7
7
  "keywords": [
package/sync/dev.js CHANGED
@@ -23,11 +23,13 @@ export async function syncDev(ctx) {
23
23
 
24
24
  const devRole = await ctx.mysql.getOne({
25
25
  table: ROLE_TABLE_NAME,
26
+ fields: ["id"],
26
27
  where: { code: "dev", state$gte: 0 }
27
28
  });
28
29
 
29
30
  const devAdmin = await ctx.mysql.getOne({
30
31
  table: ADMIN_TABLE_NAME,
32
+ fields: ["id"],
31
33
  where: { username: "dev", state$gte: 0 }
32
34
  });
33
35
 
@@ -133,6 +135,7 @@ export async function syncDev(ctx) {
133
135
  for (const roleConfig of roles) {
134
136
  const existingRole = await ctx.mysql.getOne({
135
137
  table: ROLE_TABLE_NAME,
138
+ fields: ["id", "apis"],
136
139
  where: {
137
140
  code: roleConfig.code,
138
141
  state$gte: 0