Skip to content

Commit c72e0e9

Browse files
committed
fox sql type mismatch
1 parent 9ad5d73 commit c72e0e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/filesystem.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ impl DbFsQueries {
199199
) -> anyhow::Result<bool> {
200200
let query = self
201201
.was_modified
202-
.query_as::<(bool,)>()
202+
.query_as::<(i32,)>()
203203
.bind(since)
204204
.bind(path.display().to_string());
205205
log::trace!(
@@ -212,7 +212,7 @@ impl DbFsQueries {
212212
query
213213
.fetch_optional(&app_state.db.connection)
214214
.await
215-
.map(|modified| modified.is_some())
215+
.map(|modified| modified == Some((1,)))
216216
.with_context(|| {
217217
format!("Unable to check when {path:?} was last modified in the database")
218218
})

0 commit comments

Comments
 (0)