db: newtype Rkey and final newtype touches for now

Lewis: May this revision serve well! <lu5a@proton.me>
This commit is contained in:
Lewis
2026-07-12 08:03:14 +02:00
parent fbfa15b0b4
commit e41f34746a
68 changed files with 326 additions and 331 deletions
+3 -2
View File
@@ -118,6 +118,7 @@ pub async fn list_repos(
let rev = get_rev_from_commit(&state, &cid_str)
.await
.or_else(|| row.repo_rev.clone())
.map(|t| t.into_inner())
.unwrap_or_default();
let status = if row.takedown_ref.is_some() {
AccountStatus::Takendown
@@ -131,7 +132,7 @@ pub async fn list_repos(
head: cid_str,
rev,
active: status.is_active(),
status: status.for_firehose_typed(),
status: status.for_firehose(),
});
}
let next_cursor = if has_more {
@@ -203,7 +204,7 @@ pub async fn get_repo_status(
Json(GetRepoStatusOutput {
did: account.did,
active: account.status.is_active(),
status: account.status.for_firehose_typed(),
status: account.status.for_firehose(),
rev,
}),
)