Browse Source

Amend index of SQL parameter

Mark Rousskov 5 năm trước cách đây
mục cha
commit
eefc085368
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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],
                 )