1
0
Fork 0
mirror of https://github.com/zhaofengli/attic.git synced 2025-03-31 04:04:36 +00:00
This commit is contained in:
Zhaofeng Li 2023-01-29 12:01:54 -07:00
parent 8f1916b5cc
commit a2bc969594

View file

@ -121,7 +121,8 @@ pub fn build_cache_object_nar_query(include_chunks: bool) -> Select<Object> {
query = prefix_column::<nar::Entity, _>(query, SELECT_NAR);
if include_chunks {
query = query.join(JoinType::InnerJoin, nar::Relation::ChunkRef.def())
query = query
.join(JoinType::InnerJoin, nar::Relation::ChunkRef.def())
.join(JoinType::LeftJoin, chunkref::Relation::Chunk.def())
.order_by_asc(chunkref::Column::Seq);