mirror of
https://github.com/certd/certd.git
synced 2026-05-15 20:47:31 +08:00
chore: 移除 autowire
This commit is contained in:
@@ -12,7 +12,7 @@ export class AutoBLoadPlugins {
|
||||
@Init()
|
||||
async init() {
|
||||
logger.info('加载插件开始');
|
||||
await this.pluginService.registerFromLocal("./metadata")
|
||||
// await this.pluginService.registerFromLocal("./metadata")
|
||||
await import("../../plugins/index.js")
|
||||
await this.pluginService.registerFromDb()
|
||||
logger.info('加载插件完成');
|
||||
|
||||
@@ -297,7 +297,7 @@ export class PluginService extends BaseService<PluginEntity> {
|
||||
}
|
||||
//排序
|
||||
list = list.sort((a, b) => {
|
||||
return a.order??10 - b.order ??10;
|
||||
return (a.order??10) - (b.order ??10);
|
||||
});
|
||||
|
||||
for (const item of list) {
|
||||
|
||||
Reference in New Issue
Block a user