diff --git a/apps/api/src/app/subscribers/subscribers.controller.ts b/apps/api/src/app/subscribers/subscribers.controller.ts index 1d8882cf9..c4feca83e 100644 --- a/apps/api/src/app/subscribers/subscribers.controller.ts +++ b/apps/api/src/app/subscribers/subscribers.controller.ts @@ -505,6 +505,7 @@ export class SubscribersController { _id: result.workflow.id, name: result.workflow.name, critical: result.workflow.critical, + tags: result.workflow.tags, triggers: [ { identifier: result.workflow.identifier, diff --git a/apps/api/src/app/widgets/dtos/update-subscriber-preference-response.dto.ts b/apps/api/src/app/widgets/dtos/update-subscriber-preference-response.dto.ts index fa80a7437..30abb6a3e 100644 --- a/apps/api/src/app/widgets/dtos/update-subscriber-preference-response.dto.ts +++ b/apps/api/src/app/widgets/dtos/update-subscriber-preference-response.dto.ts @@ -113,6 +113,12 @@ class TemplateResponse implements ITemplateConfiguration { }) critical: boolean; + @ApiProperty({ + description: 'Tags assigned to the workflow.', + type: Array, + }) + tags?: String[]; + @ApiProperty({ description: 'Triggers are the events that will trigger the workflow.', type: Array, diff --git a/apps/api/src/app/widgets/widgets.controller.ts b/apps/api/src/app/widgets/widgets.controller.ts index f7d41e7fe..cb3f5f6bf 100644 --- a/apps/api/src/app/widgets/widgets.controller.ts +++ b/apps/api/src/app/widgets/widgets.controller.ts @@ -468,6 +468,7 @@ export class WidgetsController { _id: result.workflow.id, name: result.workflow.name, critical: result.workflow.critical, + tags: result.workflow.tags, triggers: [ { identifier: result.workflow.identifier,