Skip to content

Commit 74f0396

Browse files
committed
Fix LIMIT argument for Postgres query
1 parent 2587234 commit 74f0396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/src/pool/postgres.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ where
12241224
join artifact as art on art.id = acd.aid \
12251225
order by date_recorded desc \
12261226
limit $1;",
1227-
&[&n],
1227+
&[&(n as i64)],
12281228
)
12291229
.await
12301230
.unwrap()

0 commit comments

Comments
 (0)