소스 검색

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