changelog + show update message

This commit is contained in:
Jan Prochazka
2021-12-10 18:31:50 +01:00
parent 700571c913
commit 1eba71fa8c
6 changed files with 77 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
const fs = require('fs-extra');
const path = require('path');
const axios = require('axios');
const { datadir } = require('../utility/directories');
const hasPermission = require('../utility/hasPermission');
const socket = require('../utility/socket');
@@ -58,4 +59,10 @@ module.exports = {
return false;
}
},
changelog_meta: 'get',
async changelog() {
const resp = await axios.default.get('https://raw.githubusercontent.com/dbgate/dbgate/master/CHANGELOG.md');
return resp.data;
},
};