aboutsummaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/db')
-rw-r--r--src/db/payments.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/payments.rs b/src/db/payments.rs
index f20dbdc..0082736 100644
--- a/src/db/payments.rs
+++ b/src/db/payments.rs
@@ -484,7 +484,7 @@ ORDER BY
);
let res = sqlx::query(&query)
- .bind(text::format_search(&format!("%{}%", payment_name)))
+ .bind(text::format_search(&payment_name))
.map(|row: SqliteRow| row.get("category_id"))
.fetch_one(pool)
.await;