Commit 1ce7c79
Add ban and unban event publishing to user management functions (#32)
* Add ban and unban event publishing to user management functions
- Implemented `publish_ban_event` and `publish_unban_event` functions in the users repository.
- Updated `ban_user`, `unban_user`, `restrict_user`, and `unrestrict_user` functions to publish events for leaderboard updates upon user ban and unban actions.
* Move ban/unban event publishing to usecase layer (#33)
* Initial plan
* Move event publishing from commands to usecases
Co-authored-by: cmyui <17343631+cmyui@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: cmyui <17343631+cmyui@users.noreply.github.com>
* ddeath to dead code
* Simplify error handling in user management usecases (#34)
* Initial plan
* Use ? syntax for both calls in ban/unban/restrict/unrestrict usecases
Co-authored-by: cmyui <17343631+cmyui@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: cmyui <17343631+cmyui@users.noreply.github.com>
---------
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: cmyui <17343631+cmyui@users.noreply.github.com>1 parent a8e34fe commit 1ce7c79
2 files changed
+24
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
113 | 110 | | |
114 | 111 | | |
115 | 112 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
120 | 116 | | |
121 | 117 | | |
122 | 118 | | |
| |||
0 commit comments