From 4e3196d20cf67f3a1af9724cbde43a7458b98a00 Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Mon, 13 Jan 2025 12:37:53 +0700 Subject: [PATCH] feat: update category and thumbnail --- service/content/content.ts | 2 +- service/settings/settings.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/content/content.ts b/service/content/content.ts index 686ea83c..e6a0a41a 100644 --- a/service/content/content.ts +++ b/service/content/content.ts @@ -168,7 +168,7 @@ export async function uploadThumbnail(id: any, data: any) { const headers = { "Content-Type": "multipart/form-data", }; - return httpPostInterceptor(url, data, { headers }); + return httpPostInterceptor(url, data, headers); } export async function detailSPIT(id: any) { diff --git a/service/settings/settings.ts b/service/settings/settings.ts index 551bfc94..673eb01a 100644 --- a/service/settings/settings.ts +++ b/service/settings/settings.ts @@ -39,7 +39,7 @@ export async function postCategory(data: any) { const headers = { "Content-Type": "multipart/form-data", }; - return httpPostInterceptor(url, data, { headers }); + return httpPostInterceptor(url, data, headers); } export async function getPrivacy(id: string) {