Skip to content

Commit

Permalink
adds check when timestamp is null
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Calza <[email protected]>
  • Loading branch information
brunocalza committed Nov 14, 2023
1 parent 8f84f23 commit 3ad51c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/worker/src/db/publications.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub async fn pub_cids(
.map(|row| {
(
multibase::encode::<Vec<u8>>(Base::Base32Lower, row.get("cid")),
row.get("timestamp"),
row.try_get("timestamp").unwrap_or(0),
)
})
.collect();
Expand Down

0 comments on commit 3ad51c5

Please sign in to comment.