mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 18:55:57 +08:00
fix: native binding (#7985)
This commit is contained in:
@@ -185,7 +185,9 @@ impl SqliteConnection {
|
|||||||
.map_err(anyhow::Error::from)?
|
.map_err(anyhow::Error::from)?
|
||||||
.count
|
.count
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
.try_into()
|
||||||
|
.unwrap();
|
||||||
Ok(count)
|
Ok(count)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -401,7 +403,7 @@ impl SqliteConnection {
|
|||||||
.await
|
.await
|
||||||
.map_err(anyhow::Error::from)?
|
.map_err(anyhow::Error::from)?
|
||||||
.max_version;
|
.max_version;
|
||||||
Ok(version)
|
Ok(version.try_into().unwrap())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[napi]
|
#[napi]
|
||||||
|
|||||||
Reference in New Issue
Block a user