浏览代码

Amend index of SQL parameter

Mark Rousskov 5 年之前
父节点
当前提交
eefc085368
共有 1 个文件被更改,包括 1 次插入1 次删除
  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],
                 )