Skip to content

Commit

Permalink
fix: don't claim accurate publish date
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyvion committed Mar 16, 2023
1 parent af64331 commit 953d2c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions database/sqlx-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,16 @@
},
"query": "\n UPDATE `Comic`\n SET `tagline` = ?\n WHERE\n `id` = ?\n "
},
"171f43ee696d68b6e89cbb9aabb87e296e0d3679dc1e64bedec90b05e8cd3ed7": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 7
}
},
"query": "\n INSERT INTO `Comic`\n (`id`, `title`, `image_type`, `publish_date`, `is_accurate_publish_date`)\n VALUES\n (?, ?, ?, ?, 0)\n ON DUPLICATE KEY UPDATE\n `title` = ?,\n `image_type` = ?,\n `publish_date` = ?\n "
},
"1b5cd972500fdfed5f41fa9d48c232d45fc1043089147fb87513aef1006a3732": {
"describe": {
"columns": [],
Expand Down Expand Up @@ -2168,16 +2178,6 @@
},
"query": "\n SELECT `publish_date` FROM `Comic` WHERE `id` = ?\n "
},
"fb720226ca224bbdeb08d470a574ce5dfadb85fda47371cc8d80108f52acb50f": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 7
}
},
"query": "\n INSERT INTO `Comic`\n (`id`, `title`, `image_type`, `publish_date`, `is_accurate_publish_date`)\n VALUES\n (?, ?, ?, ?, 1)\n ON DUPLICATE KEY UPDATE\n `title` = ?,\n `image_type` = ?,\n `publish_date` = ?\n "
},
"fb72ef2f19c5d5aa356ffe4a00ab1b1a7641d6d1b4a36df6cb3952de6975a9a5": {
"describe": {
"columns": [
Expand Down
2 changes: 1 addition & 1 deletion database/src/models/comic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ impl Comic {
INSERT INTO `Comic`
(`id`, `title`, `image_type`, `publish_date`, `is_accurate_publish_date`)
VALUES
(?, ?, ?, ?, 1)
(?, ?, ?, ?, 0)
ON DUPLICATE KEY UPDATE
`title` = ?,
`image_type` = ?,
Expand Down

0 comments on commit 953d2c2

Please sign in to comment.