Fix query on empty local cache
Some checks failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/release Pipeline was successful

This commit is contained in:
Olivier 'reivilibre' 2023-05-20 13:22:06 +01:00
parent 70663ad016
commit 3a2ece31b6

View File

@ -359,7 +359,7 @@ impl<const RW: bool> StoreConnection<RW> {
let row_results = query!(
"
SELECT chunk_id AS \"chunk_id!\" FROM indices i
LEFT JOIN blobs b USING (index_short_id)
JOIN blobs b USING (index_short_id)
WHERE index_sha256 = ?
",
index_id_text