jam411 3 лет назад
Родитель
Сommit
7ef47e6e2e
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      packages/app/src/server/crowi/index.js
  2. 1 1
      packages/app/src/server/service/plugin.ts

+ 2 - 2
packages/app/src/server/crowi/index.js

@@ -702,8 +702,8 @@ Crowi.prototype.setupPluginService = async function() {
   if (this.pluginService == null) {
   if (this.pluginService == null) {
     this.pluginService = new PluginService(this);
     this.pluginService = new PluginService(this);
   }
   }
-  // reinstall the plugins, if document exists but there is no repository
-  await this.pluginService.reintallNotExistPluginRepositories();
+  // download the plugins repositories, if document exists but there is no repository
+  await this.pluginService.downloadNotExistPluginRepositories();
 };
 };
 
 
 Crowi.prototype.setupPageService = async function() {
 Crowi.prototype.setupPageService = async function() {

+ 1 - 1
packages/app/src/server/service/plugin.ts

@@ -43,7 +43,7 @@ export interface IPluginService {
 
 
 export class PluginService implements IPluginService {
 export class PluginService implements IPluginService {
 
 
-  async reintallNotExistPluginRepositories(): Promise<void> {
+  async downloadNotExistPluginRepositories(): Promise<void> {
     try {
     try {
       // check all growi plugin documents
       // check all growi plugin documents
       const GrowiPlugin = mongoose.model<GrowiPlugin>('GrowiPlugin');
       const GrowiPlugin = mongoose.model<GrowiPlugin>('GrowiPlugin');