The patch-admin, patch-status and delete-user handlers each repeated the same session open/load/commit/rollback scaffold. Extract it into adminMutateUser, which owns the transaction and takes a closure for each handler's distinct guard-and-write step. |
||
|---|---|---|
| .. | ||
| shared | ||
| v1 | ||
| v2 | ||