diff --git a/jobs-core/src/storage.rs b/jobs-core/src/storage.rs index 47ebb73..a3b49cb 100644 --- a/jobs-core/src/storage.rs +++ b/jobs-core/src/storage.rs @@ -114,7 +114,7 @@ impl Storage { let id = match txn.get(&bucket, b"current-id") { Ok(id) => id.inner()?.to_serde(), Err(e) => match e { - Error::NotFound => 1, + Error::NotFound => 0, _ => return Err(e), }, };