@live-change/relations-plugin 0.7.36 → 0.7.38
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/changeTriggers.js +2 -0
- package/package.json +3 -3
- package/pluralRelationUtils.js +1 -0
package/changeTriggers.js
CHANGED
|
@@ -96,6 +96,7 @@ function registerParentDeleteTriggers(context, config) {
|
|
|
96
96
|
type: String
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
+
timeout: config.parentDeleteTriggerTimeout,
|
|
99
100
|
async execute({object}, {client, service}, emit) {
|
|
100
101
|
await triggerDeleteOnParentDeleteTriggers(context, propertyName, [object],
|
|
101
102
|
otherType, object, emit)
|
|
@@ -115,6 +116,7 @@ function registerParentDeleteTriggers(context, config) {
|
|
|
115
116
|
type: String
|
|
116
117
|
}
|
|
117
118
|
},
|
|
119
|
+
timeout: config.parentDeleteTriggerTimeout,
|
|
118
120
|
async execute({ objectType, object }, {client, service}, emit) {
|
|
119
121
|
for(const propertyName of otherPropertyNames) {
|
|
120
122
|
await triggerDeleteOnParentDeleteTriggers(context, propertyName, [objectType, object],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/relations-plugin",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.38",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"url": "https://www.viamage.com/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/framework": "^0.7.
|
|
24
|
+
"@live-change/framework": "^0.7.38",
|
|
25
25
|
"pluralize": "^8.0.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "9636ce5e683e6eb467e1af75e84a238baaeee6de"
|
|
28
28
|
}
|
package/pluralRelationUtils.js
CHANGED
|
@@ -157,6 +157,7 @@ function defineDeleteAction(config, context) {
|
|
|
157
157
|
skipValidation: true,
|
|
158
158
|
//queuedBy: otherPropertyNames,
|
|
159
159
|
waitForEvents: true,
|
|
160
|
+
timeout: config.deleteTimeout,
|
|
160
161
|
async execute(properties, { client, service }, emit) {
|
|
161
162
|
const id = properties[modelPropertyName]
|
|
162
163
|
const entity = await modelRuntime().get(id)
|