Skip to content

Commit 269cb94

Browse files
committed
fix: dont clear the labeler did on setup complete
1 parent d4c2546 commit 269cb94

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/api/setup.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -702,14 +702,14 @@ struct CompleteResponse {
702702
}
703703

704704
async fn complete(
705-
State(state): State<AppState>,
705+
State(_state): State<AppState>,
706706
admin: ModeratorAuth,
707707
) -> Result<Json<CompleteResponse>, AppError> {
708708
require_admin(&admin)?;
709709

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();
710+
// Keep the labeler DID in the mutex — it's needed by the status endpoint
711+
// to confirm setup is complete (state.config is only loaded at startup and
712+
// won't reflect DIDs saved during onboarding until a restart).
713713

714714
Ok(Json(CompleteResponse { success: true }))
715715
}

0 commit comments

Comments
 (0)