Query project count as i64 instead of i32 when gathering metrics

Using the latter will cause a type mismatch when performing the query.
This commit is contained in:
Antonio Scandurra 2022-12-06 14:49:36 +01:00
parent 2080d3efff
commit 3b5b48c043
2 changed files with 66 additions and 1 deletions

View file

@ -1472,7 +1472,7 @@ impl Database {
.into_values::<_, QueryAs>()
.one(&*tx)
.await?
.unwrap_or(0) as usize)
.unwrap_or(0i64) as usize)
})
.await
}