From 3d58bc30ca81e0349701ec7e60750ae9d3d7279e Mon Sep 17 00:00:00 2001 From: andrea rota Date: Wed, 13 Jul 2022 12:22:40 +0200 Subject: [PATCH] fix table name --- .../src/modules/cleanup-tasks/cleanup-tasks.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/apps/geoprocessing/src/modules/cleanup-tasks/cleanup-tasks.service.ts b/api/apps/geoprocessing/src/modules/cleanup-tasks/cleanup-tasks.service.ts index 40e7a2ae57..a876d57e20 100644 --- a/api/apps/geoprocessing/src/modules/cleanup-tasks/cleanup-tasks.service.ts +++ b/api/apps/geoprocessing/src/modules/cleanup-tasks/cleanup-tasks.service.ts @@ -37,7 +37,7 @@ export class CleanupTasksService implements CleanupTasks { await this.geoEntityManager.transaction(async (entityManager) => { // Truncate table to be sure that not any projectId is inside before operation await this.geoEntityManager.query( - `TRUNCATE TABLE project_nuke_preparation;`, + `TRUNCATE TABLE project_geodata_cleanup_preparation;`, ); // Set batches to insert ids in intermediate table for processing @@ -46,7 +46,7 @@ export class CleanupTasksService implements CleanupTasks { CHUNK_SIZE_FOR_BATCH_DB_OPERATIONS, ).entries()) { await entityManager.insert( - 'project_nuke_preparation', + 'project_geodata_cleanup_preparation', summaryChunks.map((chunk: string) => ({ project_id: chunk, })), @@ -85,7 +85,7 @@ export class CleanupTasksService implements CleanupTasks { ); await this.geoEntityManager.query( - `TRUNCATE TABLE project_nuke_preparation;`, + `TRUNCATE TABLE project_geodata_cleanup_preparation;`, ); }); }