Skip to content

Commit

Permalink
🐛 fix possible video url extraction error
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Oct 11, 2023
1 parent d3dc60c commit e41354f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/model/Gdoc/rawToEnriched.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ const parseVideo = (raw: RawBlockVideo): EnrichedBlockVideo => {
parseErrors: [error],
})

const url = raw.value.url
const url = extractUrl(raw.value.url)
if (!url) {
return createError({
message: "url property is missing or empty",
Expand Down

0 comments on commit e41354f

Please sign in to comment.