Skip to content

Commit cc0ce12

Browse files
committed
Update updateStats to set build date to 0 if message is not found
1 parent 698d26b commit cc0ce12

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

schedule/updateStats.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ module.exports = {
3030
builds = await Promise.all(
3131
builds.map(async (build) => {
3232
let message = await buildMessages.get(build.message);
33-
if (!message) return;
34-
build.date = message.createdTimestamp;
33+
build.date = message.createdTimestamp || 0;
3534
return {
3635
id: build.id,
3736
location: build.location,

0 commit comments

Comments
 (0)