Skip to content

Commit

Permalink
Remove changes lookup from transform
Browse files Browse the repository at this point in the history
  • Loading branch information
ggodlewski committed Nov 7, 2023
1 parent c2cefda commit 4b796cf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/containers/job/JobManagerContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,6 @@ export class JobManagerContainer extends Container {
}

private async transform(folderId: FileId, jobId: string, filesIds: FileId[] = []) {
const watchChangesContainer = <WatchChangesContainer>this.engine.getContainer('watch_changes');
const changesToFetch: GoogleFile[] = await watchChangesContainer.getChanges(folderId);
const transformContainer = new TransformContainer({
name: folderId,
jobId
Expand Down Expand Up @@ -474,11 +472,6 @@ export class JobManagerContainer extends Container {
const markdownTreeProcessor = new MarkdownTreeProcessor(contentFileService);
await markdownTreeProcessor.load();

if (filesIds.length > 0) {
await this.scheduleRetry(folderId, changesToFetch.filter(file => filesIds.includes(file.id)), markdownTreeProcessor);
} else {
await this.scheduleRetry(folderId, changesToFetch, markdownTreeProcessor);
}
} finally {
await this.engine.unregisterContainer(transformContainer.params.name);
}
Expand Down

0 comments on commit 4b796cf

Please sign in to comment.