kgrzybek / modular-monolith-with-ddd

Full Modular Monolith application with Domain-Driven Design approach.
MIT License
10.82k stars 1.7k forks source link

ProcessInternalCommandsCommandHandler does not work if result is success #311

Closed WSebo closed 6 months ago

WSebo commented 6 months ago

https://github.com/kgrzybek/modular-monolith-with-ddd/blob/c21cd3d8b0103e2d5ee946a1b692c028585198d9/src/Modules/Meetings/Infrastructure/Configuration/Processing/InternalCommands/ProcessInternalCommandsCommandHandler.cs#L49

It saves a processed command to db only if it fails, when it is success, it doest not mark it as processed. So when command succeed it does not write it to db, because there is no logic for it.