pqb 0.5.2 → 0.5.3
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.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/queryMethods/create.ts +2 -2
- package/src/queryMethods/update.ts +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4293,7 +4293,7 @@ const insert = (self, {
|
|
|
4293
4293
|
if (prependRelationsKeys.length) {
|
|
4294
4294
|
pushQueryArray(
|
|
4295
4295
|
q,
|
|
4296
|
-
"
|
|
4296
|
+
"beforeCreate",
|
|
4297
4297
|
prependRelationsKeys.map((relationName) => {
|
|
4298
4298
|
return async (q2) => {
|
|
4299
4299
|
const relationData = ctx.prependRelations[relationName];
|
|
@@ -4346,7 +4346,7 @@ const insert = (self, {
|
|
|
4346
4346
|
}
|
|
4347
4347
|
pushQueryArray(
|
|
4348
4348
|
q,
|
|
4349
|
-
"
|
|
4349
|
+
"afterCreate",
|
|
4350
4350
|
appendRelationsKeys.map((relationName) => {
|
|
4351
4351
|
return (q2, result) => {
|
|
4352
4352
|
var _a2, _b;
|
|
@@ -5223,7 +5223,7 @@ class Update {
|
|
|
5223
5223
|
if (appendRelationKeys.length) {
|
|
5224
5224
|
pushQueryArray(
|
|
5225
5225
|
this,
|
|
5226
|
-
"
|
|
5226
|
+
"afterUpdate",
|
|
5227
5227
|
appendRelationKeys.map((relationName) => {
|
|
5228
5228
|
return (q, result) => {
|
|
5229
5229
|
var _a2, _b2;
|