Skip to content

Commit

Permalink
OV-378: * service
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiy4 committed Sep 20, 2024
1 parent 108e5a4 commit 0999717
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions backend/src/bundles/avatar-videos/avatar-videos.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,13 @@ class AvatarVideoService {
const url =
await this.remotionService.getRemotionRenderProgress(renderId);

if (url) {
// TODO: NOTIFY USER
await this.updateVideoRecord(videoRecordId, url);
}

await this.removeGeneratedAvatars(generatedAvatars);
await this.removeAvatarsFromBucket(generatedAvatars);

if (!url) {
return;
}
// TODO: NOTIFY USER
await this.updateVideoRecord(videoRecordId, url);
}

private async updateVideoRecord(
Expand Down

0 comments on commit 0999717

Please sign in to comment.