Skip to content

Commit 8e52da5

Browse files
committed
Fix bug in SQLite query
The date recorded is the end of the collection, so we shouldn't add anything to it. It was implemented correctly for Postgres, but incorrectly for SQLite.
1 parent 83a5a4c commit 8e52da5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/src/pool/sqlite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ impl Connection for SqliteConnection {
11531153
async fn last_artifact_collection(&self) -> Option<ArtifactCollection> {
11541154
self.raw_ref()
11551155
.query_row(
1156-
"select date_recorded + duration, duration \
1156+
"select date_recorded, duration \
11571157
from artifact_collection_duration \
11581158
order by date_recorded desc \
11591159
limit 1;",

0 commit comments

Comments
 (0)