mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: native binding (#7985)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user