Add listener to keep status on workflows up to date: - version draft => statuses should contain draft - version active => statuses should contain active - version deactivated => if no version active, statuses should contain deactivated Renaming also the endpoints because it was not reflecting the full behaviour. Finally, adding a new status Archived for versions. Will be used when a version is deactivated, but is not the last published version anymore. It means this version cannot be re-activated.
10 lines
348 B
TypeScript
10 lines
348 B
TypeScript
import { Module } from '@nestjs/common';
|
|
|
|
import { WorkflowStatusModule } from 'src/modules/workflow/workflow-status/workflow-status.module';
|
|
import { WorkflowTriggerModule } from 'src/modules/workflow/workflow-trigger/workflow-trigger.module';
|
|
|
|
@Module({
|
|
imports: [WorkflowTriggerModule, WorkflowStatusModule],
|
|
})
|
|
export class WorkflowModule {}
|