From 7d971700ebe88aa5b498c265afd1efc1930af7b2 Mon Sep 17 00:00:00 2001 From: feruz Date: Tue, 7 May 2024 08:35:30 +0300 Subject: [PATCH] fix types --- src/common/api/threespeak/api.ts | 2 +- src/common/api/threespeak/mutations.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/api/threespeak/api.ts b/src/common/api/threespeak/api.ts index 571e99e82ad..502c6e4e89d 100644 --- a/src/common/api/threespeak/api.ts +++ b/src/common/api/threespeak/api.ts @@ -53,7 +53,7 @@ export const uploadVideoInfo = async ( videoUrl: string, thumbnailUrl: string, username: string, - duration: string + duration: string | number ) => { const token = await threespeakAuth(username); try { diff --git a/src/common/api/threespeak/mutations.ts b/src/common/api/threespeak/mutations.ts index 1f626e21746..b2f375bff43 100644 --- a/src/common/api/threespeak/mutations.ts +++ b/src/common/api/threespeak/mutations.ts @@ -45,7 +45,7 @@ export function useUploadVideoInfo() { videoUrl: string; thumbUrl: string; activeUser: string; - duration: string; + duration: string | number; }) => { try { return await uploadVideoInfo(fileName, fileSize, videoUrl, thumbUrl, activeUser, duration);