We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4c2546 commit 269cb94Copy full SHA for 269cb94
1 file changed
src/api/setup.rs
@@ -702,14 +702,14 @@ struct CompleteResponse {
702
}
703
704
async fn complete(
705
- State(state): State<AppState>,
+ State(_state): State<AppState>,
706
admin: ModeratorAuth,
707
) -> Result<Json<CompleteResponse>, AppError> {
708
require_admin(&admin)?;
709
710
- // Clear the setup mutex (but keep the labeler's OAuth session for ongoing service record updates)
711
- let mut guard = state.setup_labeler_did.lock().await;
712
- guard.take();
+ // Keep the labeler DID in the mutex — it's needed by the status endpoint
+ // to confirm setup is complete (state.config is only loaded at startup and
+ // won't reflect DIDs saved during onboarding until a restart).
713
714
Ok(Json(CompleteResponse { success: true }))
715
0 commit comments