diff --git a/.sqlx/query-14ff9674cd014e01964ecf18adeb1b005b1c834a066621f2d2727bd53809d22f.json b/.sqlx/query-14ff9674cd014e01964ecf18adeb1b005b1c834a066621f2d2727bd53809d22f.json deleted file mode 100644 index 203da86a..00000000 --- a/.sqlx/query-14ff9674cd014e01964ecf18adeb1b005b1c834a066621f2d2727bd53809d22f.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT follower_id, target_id FROM user_follows\n WHERE follower_id=$1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "follower_id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "target_id", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "14ff9674cd014e01964ecf18adeb1b005b1c834a066621f2d2727bd53809d22f" -} diff --git a/.sqlx/query-272417810ab2b2b66a8b06c32dd6b59bfb50cac0576694f0604943ea36f79acd.json b/.sqlx/query-272417810ab2b2b66a8b06c32dd6b59bfb50cac0576694f0604943ea36f79acd.json deleted file mode 100644 index bde8263a..00000000 --- a/.sqlx/query-272417810ab2b2b66a8b06c32dd6b59bfb50cac0576694f0604943ea36f79acd.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n SELECT follower_id, target_id FROM user_follows\n WHERE target_id=$1\n ", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "follower_id", - "type_info": "Int8" - }, - { - "ordinal": 1, - "name": "target_id", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [ - "Int8" - ] - }, - "nullable": [ - false, - false - ] - }, - "hash": "272417810ab2b2b66a8b06c32dd6b59bfb50cac0576694f0604943ea36f79acd" -} diff --git a/.sqlx/query-af1b25864807cdb3ad3abd5dbad83eee68f7ddc465c1582e62a68a3182b53605.json b/.sqlx/query-af1b25864807cdb3ad3abd5dbad83eee68f7ddc465c1582e62a68a3182b53605.json deleted file mode 100644 index 5d390e74..00000000 --- a/.sqlx/query-af1b25864807cdb3ad3abd5dbad83eee68f7ddc465c1582e62a68a3182b53605.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "\n INSERT INTO user_follows (follower_id, target_id) VALUES ($1, $2)\n ", - "describe": { - "columns": [], - "parameters": { - "Left": [ - "Int8", - "Int8" - ] - }, - "nullable": [] - }, - "hash": "af1b25864807cdb3ad3abd5dbad83eee68f7ddc465c1582e62a68a3182b53605" -} diff --git a/src/database/models/project_item.rs b/src/database/models/project_item.rs index e0f611b0..365dd473 100644 --- a/src/database/models/project_item.rs +++ b/src/database/models/project_item.rs @@ -355,7 +355,7 @@ impl Project { ", id as ProjectId ) - .execute(&mut *transaction) + .execute(&mut **transaction) .await?; sqlx::query!(