(
Extension(session): Extension<LoggedInSession>,
State(state): State<AppState>,
)
| 113 | } |
| 114 | |
| 115 | pub async fn del_all_sessions( |
| 116 | Extension(session): Extension<LoggedInSession>, |
| 117 | State(state): State<AppState>, |
| 118 | ) -> ApiResult<impl IntoResponse> { |
| 119 | state |
| 120 | .db |
| 121 | .del_all_sessions(session.session.user.id) |
| 122 | .await |
| 123 | .map_err(|err| { |
| 124 | error!(%err, "failed deleting all sessions"); |
| 125 | ApiErrorResponse::InternalError |
| 126 | })?; |
| 127 | |
| 128 | Ok(EmptyResponse) |
| 129 | } |
nothing calls this directly
no test coverage detected