Skip to content

Commit

Permalink
Remove asset upload failed event from test download fn
Browse files Browse the repository at this point in the history
  • Loading branch information
WRadoslaw committed Nov 9, 2023
1 parent d4df6b2 commit 064309b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/atlas/src/providers/assets/assets.helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export const testAssetDownload = (url: string, type: AssetType | null): Promise<

const reject = (err?: unknown) => {
cleanup()
UserEventsLogger.logAssetUploadFailedEvent({ resolvedUrl: url }, err as Error)
_reject(err)
}

Expand Down Expand Up @@ -76,10 +75,7 @@ export const testAssetDownload = (url: string, type: AssetType | null): Promise<
video.src = url
} else if (type === 'subtitles') {
fetch(url, { method: 'HEAD', mode: 'cors', cache: 'no-store' })
.then((response) => {
if (!response.ok) {
UserEventsLogger.logAssetUploadFailedEvent({ resolvedUrl: url }, new Error(response.statusText))
}
.then(() => {
resolve()
})
.catch(reject)
Expand Down

0 comments on commit 064309b

Please sign in to comment.