Skip to content

Commit

Permalink
fix table name
Browse files Browse the repository at this point in the history
  • Loading branch information
hotzevzl committed Jul 13, 2022
1 parent 267b218 commit 9a40fc3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
})),
Expand Down Expand Up @@ -85,7 +85,7 @@ export class CleanupTasksService implements CleanupTasks {
);

await this.geoEntityManager.query(
`TRUNCATE TABLE project_nuke_preparation;`,
`TRUNCATE TABLE project_geodata_cleanup_preparation;`,
);
});
}
Expand Down

0 comments on commit 9a40fc3

Please sign in to comment.