Commit 023a3c0
committed
feat(engagement): implement single engagement per user and entity
- Add a business logic check to prevent multiple engagements by the same user for the same entity
- Query existing engagements for the authenticated user and the entity in question
- Throw a ConflictException if an existing engagement is found
- Log a warning message when attempting to create a duplicate engagement1 parent 60e6725 commit 023a3c0
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
321 | 339 | | |
322 | 340 | | |
323 | 341 | | |
| |||
0 commit comments