fix unnecessary re-serializations

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-10-09 03:37:13 +00:00 committed by strawberry
parent 8eec78e9e0
commit 814b9e28b6
7 changed files with 9 additions and 11 deletions

View file

@ -128,7 +128,7 @@ impl Service {
pub async fn last_check_for_updates_id(&self) -> u64 {
self.db
.qry(LAST_CHECK_FOR_UPDATES_COUNT)
.get(LAST_CHECK_FOR_UPDATES_COUNT)
.await
.deserialized()
.unwrap_or(0_u64)