@live-change/relations-plugin
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -71,3 +71,3 @@ import { extractObjectData, extractIdentifiers } from "./dataUtils.js" | ||
if (found) { | ||
const eventName = propertyName + reverseRelationWord + modelName + 'DeleteByOwner' | ||
const eventName = modelName + 'DeleteByOwner' | ||
emit({ | ||
@@ -74,0 +74,0 @@ type: eventName, |
@@ -35,3 +35,3 @@ import { | ||
} = context | ||
const eventName = joinedOthersPropertyName + reverseRelationWord + modelName + 'Updated' | ||
const eventName = modelName + 'Updated' | ||
service.events[eventName] = new EventDefinition({ | ||
@@ -62,3 +62,3 @@ name: eventName, | ||
} = context | ||
const eventName = joinedOthersPropertyName + reverseRelationWord + modelName + 'Transferred' | ||
const eventName = modelName + 'Transferred' | ||
service.events[eventName] = new EventDefinition({ | ||
@@ -86,3 +86,3 @@ name: eventName, | ||
} = context | ||
const eventName = joinedOthersPropertyName + reverseRelationWord + modelName + 'Deleted' | ||
const eventName = modelName + 'Deleted' | ||
service.events[eventName] = new EventDefinition({ | ||
@@ -107,3 +107,3 @@ name: eventName, | ||
} = context | ||
const eventName = joinedOthersPropertyName + reverseRelationWord + modelName + 'Copied' | ||
const eventName = modelName + 'Copied' | ||
service.events[eventName] = new EventDefinition({ | ||
@@ -110,0 +110,0 @@ name: eventName, |
{ | ||
"name": "@live-change/relations-plugin", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "", | ||
@@ -25,6 +25,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"@live-change/framework": "^0.9.0", | ||
"@live-change/framework": "^0.9.1", | ||
"pluralize": "^8.0.0" | ||
}, | ||
"gitHead": "b82513f5b400afcc4b8cc3ae1f9dfe4ac3a2a6eb" | ||
"gitHead": "d00e08ee081d6993421e4573fc25588345aaabca" | ||
} |
@@ -167,3 +167,3 @@ import App from "@live-change/framework" | ||
for(const propertyName of otherPropertyNames) { | ||
const eventName = propertyName + reverseRelationWord + modelName + 'DeleteByOwner' | ||
const eventName = modelName + 'DeleteByOwner' | ||
service.events[eventName] = new EventDefinition({ | ||
@@ -170,0 +170,0 @@ name: eventName, |
@@ -8,4 +8,4 @@ import App from "@live-change/framework" | ||
import { fireChangeTriggers, registerParentDeleteTriggers } from "./changeTriggers.js" | ||
import { extractObjectData } from "./dataUtils.js" | ||
function extractTypeAndIdParts(otherPropertyNames, properties) { | ||
@@ -167,3 +167,3 @@ const typeAndIdParts = [] | ||
function defineDeleteByOwnerEvents(config, context, generateId) { | ||
function defineDeleteByOwnerEvents(config, context) { | ||
const { | ||
@@ -173,3 +173,3 @@ service, modelRuntime, joinedOthersPropertyName, modelName, modelPropertyName, otherPropertyNames, reverseRelationWord | ||
for(const propertyName of otherPropertyNames) { | ||
const eventName = propertyName + reverseRelationWord + modelName + 'DeleteByOwner' | ||
const eventName = modelName + 'DeleteByOwner' | ||
service.events[eventName] = new EventDefinition({ | ||
@@ -202,3 +202,3 @@ name: eventName, | ||
await Promise.all(deletePromises) | ||
} while (bucket.length == bucketSize) | ||
} while (bucket.length === bucketSize) | ||
} | ||
@@ -205,0 +205,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131474
3300