@ -39,9 +39,7 @@ module.exports = class Server {
}))
.get('/api/check-update', (Util.promisify(async () => {
return {
checkUpdate: CHECK_UPDATE,
};
return CHECK_UPDATE;
})))
.get('/api/release', (Util.promisify(async () => {
@ -29,7 +29,7 @@ class API {
return json;
}
async checkUpdate() {
async getCheckUpdate() {
return this.call({
method: 'get',
path: '/check-update',
@ -301,7 +301,7 @@ new Vue({
i18n.locale = lang;
const checkUpdate = await this.api.checkUpdate();
const checkUpdate = await this.api.getCheckUpdate();
if (!checkUpdate) return;
const currentRelease = await this.api.getRelease();