Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: native binding (#7985)

DarkSky6557b5d4b63e
diff --git a/packages/frontend/native/src/sqlite/mod.rs b/packages/frontend/native/src/sqlite/mod.rs
index e58ec75375..9880c33df7 100644
--- a/packages/frontend/native/src/sqlite/mod.rs
+++ b/packages/frontend/native/src/sqlite/mod.rs
@@ -185,7 +185,9 @@ impl SqliteConnection {
.map_err(anyhow::Error::from)?
.count
}
- };
+ }
+ .try_into()
+ .unwrap();
Ok(count)
}
@@ -401,7 +403,7 @@ impl SqliteConnection {
.await
.map_err(anyhow::Error::from)?
.max_version;
- Ok(version)
+ Ok(version.try_into().unwrap())
}
#[napi]