Skip to content

Commit

Permalink
fix: show correct 0 uncrawled number
Browse files Browse the repository at this point in the history
  • Loading branch information
sznowicki committed Jan 2, 2024
1 parent a041cfc commit d11a522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const getUnchecked = async (envs) => {
]
});

return response?.documents?.[0]?.count ?? null;
return response?.documents?.[0]?.count ?? 0;
};

export const trackQuery = async (envs, {q, hasResults}) => {
Expand Down

0 comments on commit d11a522

Please sign in to comment.