Bläddra i källkod

Update indexing worker formatting

Timothy Pomeroy 4 veckor sedan
förälder
incheckning
6079f1cd74
2 ändrade filer med 3 tillägg och 9 borttagningar
  1. 2 6
      apps/service/src/indexing-worker.ts
  2. 1 3
      apps/service/src/maintenance.service.ts

+ 2 - 6
apps/service/src/indexing-worker.ts

@@ -67,9 +67,7 @@ async function indexDestination(
   reindex = false,
   batchSize = 100,
 ): Promise<IndexResult> {
-  console.log(
-    `Worker: Starting indexing for ${dataset} at ${destination}`,
-  );
+  console.log(`Worker: Starting indexing for ${dataset} at ${destination}`);
   console.log(`Worker: Database path: ${dbPath}`);
   console.log(`Worker: Reindex: ${reindex}, Batch size: ${batchSize}`);
 
@@ -155,9 +153,7 @@ async function indexDestination(
               );
             }
           } catch (error) {
-            console.error(
-              `Worker: Failed to index file ${filePath}: ${error}`,
-            );
+            console.error(`Worker: Failed to index file ${filePath}: ${error}`);
             errors++;
           }
         }),

+ 1 - 3
apps/service/src/maintenance.service.ts

@@ -392,9 +392,7 @@ export class MaintenanceService {
     this.logger.log(
       `Starting indexing worker for ${dataset} at ${destinationPath}`,
     );
-    this.logger.log(
-      `Options: reindex=${reindex}, batchSize=${batchSize}`,
-    );
+    this.logger.log(`Options: reindex=${reindex}, batchSize=${batchSize}`);
 
     // Get database path
     let projectRoot = process.cwd();