Skip to content

Commit

Permalink
fixing duration
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloendoh committed Aug 12, 2024
1 parent 1f16f52 commit a1dd5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers/utils/LinkPreview/LinkPreviewService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default class LinkPreviewService {
res.data.items[0].contentDetails.duration
).toObject()

let durationStr = "00:00h"
let durationStr = ""
if (durationObj.hours) {
if (durationObj.hours < 10) {
durationStr += "0" + durationObj.hours
Expand Down

0 comments on commit a1dd5db

Please sign in to comment.