From a2a47b276af54ff9b1abc77297f1f7f8d0cdd556 Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Wed, 29 May 2024 18:51:12 +0100 Subject: [PATCH] I forgot to wrap the string... damn. God, I really need a test suite --- src/ingestion/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ingestion/db.rs b/src/ingestion/db.rs index 720b40b..3123308 100644 --- a/src/ingestion/db.rs +++ b/src/ingestion/db.rs @@ -108,7 +108,7 @@ async fn notify_new_transactions( ) -> Result<(), AppError> { let payload = serde_json::to_string(&new_transaction_ids).map_err(|e| anyhow!(e))?; - db.execute_unprepared(&format!(r#"NOTIFY monzo_new_transactions, {payload}"#,)) + db.execute_unprepared(&format!(r#"NOTIFY monzo_new_transactions, '{payload}'"#,)) .await?; Ok(())