pqb 0.17.8 → 0.17.9
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/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8381,11 +8381,14 @@ class Update {
|
|
|
8381
8381
|
} else {
|
|
8382
8382
|
let value = set[key];
|
|
8383
8383
|
if (typeof value === "function") {
|
|
8384
|
-
value = resolveSubQueryCallback(
|
|
8384
|
+
value = resolveSubQueryCallback(
|
|
8385
|
+
this.baseQuery,
|
|
8386
|
+
value
|
|
8387
|
+
);
|
|
8385
8388
|
if (value instanceof Db && value.q.type) {
|
|
8386
8389
|
throw new OrchidOrmInternalError(
|
|
8387
8390
|
value,
|
|
8388
|
-
`Only
|
|
8391
|
+
`Only selecting queries are allowed inside callback of update, ${value.q.type} is given instead.`
|
|
8389
8392
|
);
|
|
8390
8393
|
}
|
|
8391
8394
|
set[key] = value;
|