dbgate-serve fix

This commit is contained in:
Jan Prochazka
2022-03-13 17:05:50 +01:00
parent ae719157c0
commit 25015f35d5
2 changed files with 7 additions and 1 deletions

View File

@@ -89,6 +89,12 @@ module.exports = {
encoding: 'utf-8',
})
.then(x => JSON.parse(x));
if (!manifest.keywords) {
continue;
}
if (!manifest.keywords.includes('dbgateplugin')) {
continue;
}
const readmeFile = path.join(isPackaged ? packagedPluginsDir() : pluginsdir(), packageName, 'README.md');
// @ts-ignore
if (await fs.exists(readmeFile)) {