Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 9edb0fe

Browse files
committed
Fix artifact size query for Postgre
1 parent 6e52191 commit 9edb0fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/src/pool/postgres.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,12 +938,12 @@ where
938938
async fn get_artifact_size(&self, aid: ArtifactIdNumber) -> HashMap<String, u64> {
939939
let rows = self
940940
.conn()
941-
.query(&self.statements().get_artifact_size, &[&aid.0])
941+
.query(&self.statements().get_artifact_size, &[&(aid.0 as i32)])
942942
.await
943943
.unwrap();
944944

945945
rows.into_iter()
946-
.map(|row| (row.get::<_, String>(0), row.get::<_, u32>(1) as u64))
946+
.map(|row| (row.get::<_, String>(0), row.get::<_, i32>(1) as u64))
947947
.collect()
948948
}
949949

0 commit comments

Comments
 (0)