remove destroy
This commit is contained in:
@@ -23,8 +23,6 @@ class PluginLoader {
|
|||||||
if(force || !status.remote || !status.remote.includes("fb-dist/admin") || !status.exists || status.empty || !status.currentTag){
|
if(force || !status.remote || !status.remote.includes("fb-dist/admin") || !status.exists || status.empty || !status.currentTag){
|
||||||
//logger.warn("Cloning fb-dist/admin into ./dist ..."+(force?" USING FORCE!":""))
|
//logger.warn("Cloning fb-dist/admin into ./dist ..."+(force?" USING FORCE!":""))
|
||||||
status = await updater.cloneRepo(force)
|
status = await updater.cloneRepo(force)
|
||||||
|
|
||||||
this.destroy()
|
|
||||||
const installer = eval("require")("./Installer").installAdmin
|
const installer = eval("require")("./Installer").installAdmin
|
||||||
installer(this.getPlugins())
|
installer(this.getPlugins())
|
||||||
}
|
}
|
||||||
@@ -125,11 +123,6 @@ class PluginLoader {
|
|||||||
getPlugins():Plugin[]{
|
getPlugins():Plugin[]{
|
||||||
return [...this.runningPlugins]
|
return [...this.runningPlugins]
|
||||||
}
|
}
|
||||||
|
|
||||||
async destroy(){
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -141,7 +134,6 @@ export type PluginLoaderIfc = {
|
|||||||
setPluginVersion: (name:string, tag:string) => Promise<FolderStatus>
|
setPluginVersion: (name:string, tag:string) => Promise<FolderStatus>
|
||||||
getLoadedPluginNames: () => Promise<String[]>
|
getLoadedPluginNames: () => Promise<String[]>
|
||||||
selfUpdate: (force:boolean) => Promise<FolderStatus>
|
selfUpdate: (force:boolean) => Promise<FolderStatus>
|
||||||
destroy: () => Promise<void>
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -170,9 +162,6 @@ implements RPCExporter<PluginLoaderIfc, "PluginLoader">{
|
|||||||
},{
|
},{
|
||||||
name: "selfUpdate" as "selfUpdate",
|
name: "selfUpdate" as "selfUpdate",
|
||||||
call: async (force: boolean) => {return await this.selfUpdate(force)},
|
call: async (force: boolean) => {return await this.selfUpdate(force)},
|
||||||
},{
|
|
||||||
name: "destroy" as "destroy",
|
|
||||||
call: async () => {return this.destroy()}
|
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user