Lint
This commit is contained in:
parent
3182f28359
commit
9a77aae56b
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue