mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +03:00
fix: processProfileImage path and body
This commit is contained in:
parent
f9719c995c
commit
59846cfe2f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user