@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.
- package/dist/antity-pgsql.js +4 -3
- package/package.json +1 -1
package/dist/antity-pgsql.js
CHANGED
|
@@ -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
|
|
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=${
|
|
663
|
-
const chunks = chunk(
|
|
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* () {
|