We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ad5d73 commit c72e0e9Copy full SHA for c72e0e9
src/filesystem.rs
@@ -199,7 +199,7 @@ impl DbFsQueries {
199
) -> anyhow::Result<bool> {
200
let query = self
201
.was_modified
202
- .query_as::<(bool,)>()
+ .query_as::<(i32,)>()
203
.bind(since)
204
.bind(path.display().to_string());
205
log::trace!(
@@ -212,7 +212,7 @@ impl DbFsQueries {
212
query
213
.fetch_optional(&app_state.db.connection)
214
.await
215
- .map(|modified| modified.is_some())
+ .map(|modified| modified == Some((1,)))
216
.with_context(|| {
217
format!("Unable to check when {path:?} was last modified in the database")
218
})
0 commit comments