@dwtechs/antity-pgsql 0.11.1 → 0.12.0

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.
@@ -655,12 +655,12 @@ class SQLEntity extends Entity {
655
655
  });
656
656
  this.update = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
657
657
  const l = res.locals;
658
- const rows = req.body.rows;
658
+ const r = req.body.rows;
659
659
  const dbClient = l.dbClient || null;
660
660
  const cId = l.consumerId;
661
661
  const cName = l.consumerName;
662
- log.debug(`${LOGS_PREFIX}update(rows=${rows.length}, consumerId=${cId})`);
663
- const chunks = chunk(rows);
662
+ log.debug(`${LOGS_PREFIX}update(rows=${r.length}, consumerId=${cId})`);
663
+ const chunks = chunk(r);
664
664
  for (const c of chunks) {
665
665
  const { query, args } = this.upd.query(this._schema, this._table, c, cId, cName);
666
666
  try {
@@ -670,6 +670,7 @@ class SQLEntity extends Entity {
670
670
  return next(err);
671
671
  }
672
672
  }
673
+ l.rows = r;
673
674
  next();
674
675
  });
675
676
  this.archive = (req, res, next) => __awaiter(this, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dwtechs/antity-pgsql",
3
- "version": "0.11.1",
3
+ "version": "0.12.0",
4
4
  "description": "Open source library to add PostgreSQL support to @dwtechs/Antity entities.",
5
5
  "keywords": [
6
6
  "entities"