@cadenza.io/service 2.17.1 → 2.17.2

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 CHANGED
@@ -7082,12 +7082,9 @@ var DatabaseController = class _DatabaseController {
7082
7082
  schema
7083
7083
  );
7084
7084
  for (const intent of intents) {
7085
- if (registration.intentNames.has(intent.name)) {
7086
- throw new Error(
7087
- `Duplicate auto/custom intent '${intent.name}' detected while generating ${op} task for table '${tableName}' in actor '${registration.actorName}'`
7088
- );
7085
+ if (!registration.intentNames.has(intent.name)) {
7086
+ registration.intentNames.add(intent.name);
7089
7087
  }
7090
- registration.intentNames.add(intent.name);
7091
7088
  CadenzaService.defineIntent({
7092
7089
  name: intent.name,
7093
7090
  description: intent.description,