Skip to content

Commit 953d2c2

Browse files
committed
fix: don't claim accurate publish date
1 parent af64331 commit 953d2c2

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

database/sqlx-data.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,16 @@
449449
},
450450
"query": "\n UPDATE `Comic`\n SET `tagline` = ?\n WHERE\n `id` = ?\n "
451451
},
452+
"171f43ee696d68b6e89cbb9aabb87e296e0d3679dc1e64bedec90b05e8cd3ed7": {
453+
"describe": {
454+
"columns": [],
455+
"nullable": [],
456+
"parameters": {
457+
"Right": 7
458+
}
459+
},
460+
"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 "
461+
},
452462
"1b5cd972500fdfed5f41fa9d48c232d45fc1043089147fb87513aef1006a3732": {
453463
"describe": {
454464
"columns": [],
@@ -2168,16 +2178,6 @@
21682178
},
21692179
"query": "\n SELECT `publish_date` FROM `Comic` WHERE `id` = ?\n "
21702180
},
2171-
"fb720226ca224bbdeb08d470a574ce5dfadb85fda47371cc8d80108f52acb50f": {
2172-
"describe": {
2173-
"columns": [],
2174-
"nullable": [],
2175-
"parameters": {
2176-
"Right": 7
2177-
}
2178-
},
2179-
"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 "
2180-
},
21812181
"fb72ef2f19c5d5aa356ffe4a00ab1b1a7641d6d1b4a36df6cb3952de6975a9a5": {
21822182
"describe": {
21832183
"columns": [

database/src/models/comic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ impl Comic {
789789
INSERT INTO `Comic`
790790
(`id`, `title`, `image_type`, `publish_date`, `is_accurate_publish_date`)
791791
VALUES
792-
(?, ?, ?, ?, 1)
792+
(?, ?, ?, ?, 0)
793793
ON DUPLICATE KEY UPDATE
794794
`title` = ?,
795795
`image_type` = ?,

0 commit comments

Comments
 (0)