From 59846cfe2fd0b3326d740f2be1e4b2f289da8715 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Mon, 23 Dec 2024 09:06:14 -0300 Subject: [PATCH] fix: processProfileImage path and body --- src/main/events/profile/process-profile-image.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/events/profile/process-profile-image.ts b/src/main/events/profile/process-profile-image.ts index 4b8079b3..6166f7f8 100644 --- a/src/main/events/profile/process-profile-image.ts +++ b/src/main/events/profile/process-profile-image.ts @@ -5,10 +5,12 @@ const processProfileImage = async ( _event: Electron.IpcMainInvokeEvent, path: string ) => { - return PythonRPC.rpc.post<{ imagePath: string; mimeType: string }>( - "/profile_image_processor/process_image", - { path } - ); + return PythonRPC.rpc + .post<{ + imagePath: string; + mimeType: string; + }>("/profile-image", { image_path: path }) + .then((response) => response.data); }; registerEvent("processProfileImage", processProfileImage);