You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 20, 2023. It is now read-only.
Create command type CompleteTask in modules/shared/commands
Create CompleteTaskApplicationCommand class in modules/shared/commands
Domain logic:
Create function completeTask in modules/write/learning-materials-tasks/domain.
Return TaskWasCompleted on every CompleteTask just if task is not already completed.
Application logic:
Create CommandHandler for CompleteTaskApplicationCommand
Execute domain logic for complete task. Event stream name should be in format LearningMaterialsTasks_${learningMaterialsId}
Presentation logic:
Create ProcessStEventsRestController in modules/write/learning-materials-tasks/presentation/rest with endpoint POST process-st/events/task-checked-unchecked
Execute CompleteTask command on TaskCheckedUnchecked webook event if task status is Completed
NestJS Module:
Create LearningMaterialsTasks module and declare all required providers / controllers. Similar as in LearningMaterialsUrlModule.