@live-change/relations-plugin
Advanced tools
Comparing version 0.9.1 to 0.9.2
{ | ||
"name": "@live-change/relations-plugin", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "", | ||
@@ -25,6 +25,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"@live-change/framework": "^0.9.1", | ||
"@live-change/framework": "^0.9.2", | ||
"pluralize": "^8.0.0" | ||
}, | ||
"gitHead": "d00e08ee081d6993421e4573fc25588345aaabca" | ||
"gitHead": "353f5aa8d66fec68587825db5ba09f63b08f4dee" | ||
} |
@@ -159,3 +159,3 @@ import App from '@live-change/framework' | ||
} = context | ||
const eventName = joinedOthersPropertyName + context.reverseRelationWord + modelName + 'Updated' | ||
const eventName = modelName + 'Updated' | ||
return async function execute(properties, { client, service }, emit) { | ||
@@ -276,3 +276,2 @@ const id = properties[modelPropertyName] | ||
} = context | ||
const eventName = joinedOthersPropertyName + context.reverseRelationWord + modelName + 'Deleted' | ||
const actionName = 'delete' + modelName | ||
@@ -309,3 +308,2 @@ const accessControl = config.deleteAccessControl || config.writeAccessControl | ||
} = context | ||
const eventName = modelName + 'Deleted' | ||
const actionName = 'delete' + modelName | ||
@@ -338,3 +336,3 @@ const triggerName = `${service.name}_${actionName}` | ||
} = context | ||
const eventName = joinedOthersPropertyName + context.reverseRelationWord + modelName + 'Copied' | ||
const eventName = modelName + 'Copied' | ||
return async function execute(properties, { client, service }, emit) { | ||
@@ -395,3 +393,2 @@ const id = properties[modelPropertyName] | ||
} = context | ||
const eventName = modelName + 'Copied' | ||
const actionName = 'copy' + modelName | ||
@@ -433,3 +430,2 @@ const accessControl = config.copyAccessControl | ||
} = context | ||
const eventName = joinedOthersPropertyName + context.reverseRelationWord + modelName + 'Copied' | ||
const actionName = 'copy' + joinedOthersClassName + context.reverseRelationWord + modelName | ||
@@ -436,0 +432,0 @@ const triggerName = `${service.name}_${actionName}` |
131080
3296