Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Let it flow

Manav Rathi29877d119c80
diff --git a/desktop/src/main/services/ml-util-test.ts b/desktop/src/main/services/ml-util-test.ts
index c7bec54356..34bed7eec1 100644
--- a/desktop/src/main/services/ml-util-test.ts
+++ b/desktop/src/main/services/ml-util-test.ts
@@ -28,6 +28,7 @@ process.parentPort.once("message", (e) => {
if (response) port.postMessage(response);
});
});
+ port.start();
});
/**
@@ -40,8 +41,8 @@ const handleMessage = async (m: unknown) => {
const id = m.id;
switch (m.type) {
case "foo":
- if ("a" in m && typeof m.a == "string")
- return { id, data: await foo(m.a) };
+ if ("data" in m && typeof m.data == "string")
+ return { id, data: await foo(m.data) };
break;
}
}