Merge branch 'feature/seed-completed-downloads' into feat/achievements-points

This commit is contained in:
Zamitto 2024-12-23 09:07:37 -03:00
commit 07d0e86031

View File

@ -5,10 +5,12 @@ const processProfileImage = async (
_event: Electron.IpcMainInvokeEvent, _event: Electron.IpcMainInvokeEvent,
path: string path: string
) => { ) => {
return PythonRPC.rpc.post<{ imagePath: string; mimeType: string }>( return PythonRPC.rpc
"/profile_image_processor/process_image", .post<{
{ path } imagePath: string;
); mimeType: string;
}>("/profile-image", { image_path: path })
.then((response) => response.data);
}; };
registerEvent("processProfileImage", processProfileImage); registerEvent("processProfileImage", processProfileImage);