Add: current pubdate

This commit is contained in:
Nicholas Wallace 2024-07-06 15:57:20 +00:00
parent 3a2f786517
commit 92aae736c4

View File

@ -49,11 +49,11 @@ export async function checkForUpdate() {
}
if (verObj.version == currVerObj.version) {
currVerObj.pubdate = new Date(release.published_at)
currVerObj.changelog = release.body
}
})
}
})
if (!largestVer) {
console.error('No valid version tags to compare with')
@ -65,6 +65,8 @@ export async function checkForUpdate() {
latestVersion: largestVer.version,
githubTagUrl: `https://github.com/advplyr/audiobookshelf/releases/tag/v${largestVer.version}`,
currentVersion: currVerObj.version,
currentTagUrl: `https://github.com/advplyr/audiobookshelf/releases/tag/v${currVerObj.version}`,
currentVersionPubDate: currVerObj.pubdate,
currentVersionChangelog: currVerObj.changelog
}
}
}