query-core 0.6.1 → 0.6.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.
package/lib/services.js CHANGED
@@ -524,7 +524,7 @@ var CRUDRepository = (function (_super) {
524
524
  return db.exec(stmt.query, stmt.params);
525
525
  }
526
526
  else {
527
- return Promise.resolve(0);
527
+ return Promise.resolve(-1);
528
528
  }
529
529
  };
530
530
  return CRUDRepository;
@@ -646,7 +646,7 @@ var SqlRepository = (function (_super) {
646
646
  return db.exec(stmt.query, stmt.params);
647
647
  }
648
648
  else {
649
- return Promise.resolve(0);
649
+ return Promise.resolve(-1);
650
650
  }
651
651
  };
652
652
  return SqlRepository;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "query-core",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "query",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/services.ts CHANGED
@@ -574,7 +574,7 @@ export class CRUDRepository<T, ID> extends SqlWriter<T> {
574
574
  const db = ctx ? ctx : this.db
575
575
  return db.exec(stmt.query, stmt.params)
576
576
  } else {
577
- return Promise.resolve(0)
577
+ return Promise.resolve(-1)
578
578
  }
579
579
  }
580
580
  }
@@ -728,7 +728,7 @@ export class SqlRepository<T, ID, S> extends SqlSearchWriter<T, S> {
728
728
  const db = ctx ? ctx : this.db
729
729
  return db.exec(stmt.query, stmt.params)
730
730
  } else {
731
- return Promise.resolve(0)
731
+ return Promise.resolve(-1)
732
732
  }
733
733
  }
734
734
  }