فهرست منبع

fix(elasticsearch): simplify index creation by removing CI-specific mappings import

Ryu Sato 1 هفته پیش
والد
کامیت
aa6204d92b
1فایلهای تغییر یافته به همراه1 افزوده شده و 5 حذف شده
  1. 1 5
      apps/app/src/server/service/search-delegator/elasticsearch.ts

+ 1 - 5
apps/app/src/server/service/search-delegator/elasticsearch.ts

@@ -439,11 +439,7 @@ class ElasticsearchDelegator
     }
 
     if (isES9ClientDelegator(this.client)) {
-      const { mappings } =
-        process.env.CI == null
-          ? await import('./mappings/mappings-es9')
-          : await import('./mappings/mappings-es9-for-ci');
-
+      const { mappings } = await import('./mappings/mappings-es9');
       return this.client.indices.create({
         index,
         ...mappings,