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:
parent
2080d3efff
commit
3b5b48c043
2 changed files with 66 additions and 1 deletions
|
@ -1472,7 +1472,7 @@ impl Database {
|
|||
.into_values::<_, QueryAs>()
|
||||
.one(&*tx)
|
||||
.await?
|
||||
.unwrap_or(0) as usize)
|
||||
.unwrap_or(0i64) as usize)
|
||||
})
|
||||
.await
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue