Store all refs in the db

This commit is contained in:
Joscha 2023-08-06 12:47:51 +02:00
parent 7768e4ad4b
commit 21d97a5bf4
15 changed files with 186 additions and 141 deletions

View file

@ -29,7 +29,7 @@ pub async fn get(
) -> somehow::Result<impl IntoResponse> {
let repo = repo.to_thread_local();
let rows = sqlx::query!("SELECT name, hash FROM tracked_refs")
let rows = sqlx::query!("SELECT name, hash FROM refs WHERE tracked")
.fetch_all(&db)
.await?;