1
0
Fork 0
mirror of synced 2024-07-05 14:31:17 +12:00

fix getting the current version

This commit is contained in:
Maurits Lourens 2022-02-22 10:10:41 +01:00
parent 5862fc2322
commit 028cdfcf9a

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 (
url: "/api/dev/version", await API.get({
}).version url: "/api/dev/version",
})
).version
}, },
/** /**