Skip to content

Commit

Permalink
DBから取り出すURLをsrcからurlに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
kozakura913 committed Aug 13, 2024
1 parent 90cd146 commit 64247f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ async fn load_from_db(pool: &Pool<Postgres>,req:Request)->Response{
};
sqlx::query_as::<_, DriveFile>(
"
SELECT \"thumbnailAccessKey\",\"webpublicAccessKey\",\"isLink\",src
SELECT \"thumbnailAccessKey\",\"webpublicAccessKey\",\"isLink\",url
FROM drive_file
WHERE \"webpublicAccessKey\" = $1
",
Expand All @@ -191,7 +191,7 @@ async fn load_from_db(pool: &Pool<Postgres>,req:Request)->Response{
};
sqlx::query_as::<_, DriveFile>(
"
SELECT \"thumbnailAccessKey\",\"webpublicAccessKey\",\"isLink\",src
SELECT \"thumbnailAccessKey\",\"webpublicAccessKey\",\"isLink\",url
FROM drive_file
WHERE \"thumbnailAccessKey\" = $1
",
Expand All @@ -213,7 +213,7 @@ async fn load_from_db(pool: &Pool<Postgres>,req:Request)->Response{
};
sqlx::query_as::<_, DriveFile>(
"
SELECT \"thumbnailAccessKey\",\"webpublicAccessKey\",\"isLink\",src
SELECT \"thumbnailAccessKey\",\"webpublicAccessKey\",\"isLink\",url
FROM drive_file
WHERE \"accessKey\" = $1
",
Expand Down

0 comments on commit 64247f8

Please sign in to comment.