mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
fix(deps): update typescript-projects (#11606)
* fix(deps): update typescript-projects * fix: type error --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
parent
28ba22e8c1
commit
aeed24b5b4
5 changed files with 245 additions and 284 deletions
|
|
@ -101,7 +101,10 @@ export class MediaRepository implements IMediaRepository {
|
|||
transcode(input: string, output: string | Writable, options: TranscodeCommand): Promise<void> {
|
||||
if (!options.twoPass) {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.configureFfmpegCall(input, output, options).on('error', reject).on('end', resolve).run();
|
||||
this.configureFfmpegCall(input, output, options)
|
||||
.on('error', reject)
|
||||
.on('end', () => resolve())
|
||||
.run();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -126,7 +129,7 @@ export class MediaRepository implements IMediaRepository {
|
|||
.on('error', reject)
|
||||
.on('end', () => handlePromiseError(fs.unlink(`${output}-0.log`), this.logger))
|
||||
.on('end', () => handlePromiseError(fs.rm(`${output}-0.log.mbtree`, { force: true }), this.logger))
|
||||
.on('end', resolve)
|
||||
.on('end', () => resolve())
|
||||
.run();
|
||||
})
|
||||
.run();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue