This commit is contained in:
Jiiks 2018-12-02 04:13:57 +02:00
parent 3182f28359
commit 9a77aae56b
2 changed files with 3 additions and 1 deletions

View File

@ -90,11 +90,13 @@ export default class BdWebApi {
static getThemes(args) {
return dummyThemes();
/*
if (!args) return request.get(ENDPOINTS.themes);
const { id } = args;
if (id) return request.get(ENDPOINTS.theme(id));
return request.get(ENDPOINTS.themes);
*/
}
static getUsers(args) {

View File

@ -75,7 +75,7 @@ export default class PackageInstaller {
const bytes = typeof bytesOrPath === 'string' ? fs.readFileSync(bytesOrPath) : bytesOrPath;
const outputName = `${nameOrId}.bd`;
outputPath = path.join(Globals.getPath(contentType + 's'), outputName);
outputPath = path.join(Globals.getPath(`${contentType}s`), outputName);
fs.writeFileSync(outputPath, bytes);
const manager = contentType === 'plugin' ? PluginManager : ThemeManager;