Updater: fix potentially erroring in edge case

This commit is contained in:
Vendicated 2026-06-25 11:04:00 +02:00
parent 84adcc7002
commit 6eb2207040
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -51,7 +51,7 @@ async function calculateGitChanges() {
return data.commits.map((c: any) => ({
// github api only sends the long sha
hash: c.sha.slice(0, 7),
author: c.author.login,
author: c.author?.login ?? c.commit?.author?.name ?? "Unknown Author",
message: c.commit.message.split("\n")[0]
}));
}