Merge pull request #4621 from mslourens/show_current_version

fix getting the current version
This commit is contained in:
Martin McKeaveney 2022-03-06 21:57:47 +01:00 committed by GitHub
commit 7c971586aa
1 changed files with 5 additions and 3 deletions

View File

@ -30,9 +30,11 @@ export const buildOtherEndpoints = API => ({
* Gets the version of the installed Budibase environment. * Gets the version of the installed Budibase environment.
*/ */
getBudibaseVersion: async () => { getBudibaseVersion: async () => {
return await API.get({ return (
await API.get({
url: "/api/dev/version", url: "/api/dev/version",
}).version })
).version
}, },
/** /**