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);