From 997e23150ef8359a80de6e2dcf6666e07946bc7c Mon Sep 17 00:00:00 2001 From: jmt-gh <13617455+jmt-gh@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:26:30 -0700 Subject: [PATCH] extract current version changelog information --- client/plugins/version.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/plugins/version.js b/client/plugins/version.js index b1f9d577..75b948c8 100644 --- a/client/plugins/version.js +++ b/client/plugins/version.js @@ -47,8 +47,13 @@ export async function checkForUpdate() { largestVer = verObj } } + + if (verObj.version == currVerObj.version) { + currVerObj.changelog = release.body + } }) } + }) if (!largestVer) { console.error('No valid version tags to compare with') @@ -59,6 +64,7 @@ export async function checkForUpdate() { hasUpdate: largestVer.total > currVerObj.total, latestVersion: largestVer.version, githubTagUrl: `https://github.com/advplyr/audiobookshelf/releases/tag/v${largestVer.version}`, - currentVersion: currVerObj.version + currentVersion: currVerObj.version, + currentVersionChangelog: currVerObj.changelog } } \ No newline at end of file