Skip to content

Commit

Permalink
feat(bin): use removeFilesV1 usecase to remove frames
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-gs committed Jan 12, 2024
1 parent 2120817 commit 2cab454
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/cli/tasks/clean-stalled-frames.task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const cleanStalledFrames: CleanStalledFramesFunctionType = async (
}
}
if (toDelete.length === deleteInBulksOf) {
// await bucketEntriesUsecase.removeFilesV1(toDelete as any);
await bucketEntriesUsecase.removeFilesV1(toDelete as any);

stats.totalSize += toDelete.reduce((acc, curr) => acc + curr._frame.size, 0);
stats.totalCount += toDelete.length;
Expand Down
2 changes: 1 addition & 1 deletion lib/core/bucketEntries/usecase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class BucketEntriesUsecase {
await this.framesRepository.deleteByIds(frames.map(f => f.id));
}

await this.bucketEntriesRepository.deleteByIds(files.map(f => f.id));
// await this.bucketEntriesRepository.deleteByIds(files.map(f => f.id));
}

async removeFilesV2(files: BucketEntry[]): Promise<void> {
Expand Down

0 comments on commit 2cab454

Please sign in to comment.