Browse Source

Amend index of SQL parameter

Mark Rousskov 5 years ago
parent
commit
eefc085368
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/db/notifications.rs

+ 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],
                 )