doomiwork 3.5.1 → 3.5.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.
@@ -56,7 +56,7 @@ class Database {
56
56
  */
57
57
  async getComputedRowValue(sqlCommand, parameters, conn, autoclose = true) {
58
58
  let sqlExecute = await this.executeSql(sqlCommand, parameters, conn, autoclose);
59
- if (sqlExecute.successed || sqlExecute.rows === 0) return { successed: false, errcode: -1, errmsg: '没有任何记录' }
59
+ if (sqlExecute.successed || sqlExecute.rows.length == 0) return { successed: false, errcode: -1, errmsg: '没有任何记录' }
60
60
  return { successed: true, ...sqlExecute.rows[0] }
61
61
  }
62
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doomiwork",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
4
4
  "description": "doomisoft nodejs web framework",
5
5
  "main": "index.js",
6
6
  "scripts": {