From a1dd5dbc9623179bbd383c54c75915905d2261b6 Mon Sep 17 00:00:00 2001 From: Paulo Endoh Date: Mon, 12 Aug 2024 10:38:44 -0300 Subject: [PATCH] fixing duration --- src/resolvers/utils/LinkPreview/LinkPreviewService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolvers/utils/LinkPreview/LinkPreviewService.ts b/src/resolvers/utils/LinkPreview/LinkPreviewService.ts index 40d43fa..e96a5c8 100644 --- a/src/resolvers/utils/LinkPreview/LinkPreviewService.ts +++ b/src/resolvers/utils/LinkPreview/LinkPreviewService.ts @@ -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