I forgot to wrap the string... damn. God, I really need a test suite

This commit is contained in:
Joshua Coles 2024-05-29 18:51:12 +01:00
parent 8ce60ce278
commit a2a47b276a

View File

@ -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(())