@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.mjs CHANGED
@@ -7031,12 +7031,9 @@ var DatabaseController = class _DatabaseController {
7031
7031
  schema
7032
7032
  );
7033
7033
  for (const intent of intents) {
7034
- if (registration.intentNames.has(intent.name)) {
7035
- throw new Error(
7036
- `Duplicate auto/custom intent '${intent.name}' detected while generating ${op} task for table '${tableName}' in actor '${registration.actorName}'`
7037
- );
7034
+ if (!registration.intentNames.has(intent.name)) {
7035
+ registration.intentNames.add(intent.name);
7038
7036
  }
7039
- registration.intentNames.add(intent.name);
7040
7037
  CadenzaService.defineIntent({
7041
7038
  name: intent.name,
7042
7039
  description: intent.description,