Эх сурвалжийг харах

Amend index of SQL parameter

Mark Rousskov 5 жил өмнө
parent
commit
eefc085368

+ 1 - 1
src/db/notifications.rs

@@ -234,7 +234,7 @@ pub async fn add_metadata(
             ),
             Some(id) => {
                 t.execute(
-                    "update notifications SET metadata = $3
+                    "update notifications SET metadata = $2
                  where notification_id = $1",
                     &[&id, &metadata],
                 )