diff --git a/apps/desktop/src/chat/convexMachineClient.ts b/apps/desktop/src/chat/convexMachineClient.ts index 2ea3510..b4e0c34 100644 --- a/apps/desktop/src/chat/convexMachineClient.ts +++ b/apps/desktop/src/chat/convexMachineClient.ts @@ -39,11 +39,12 @@ type MessagesPayload = { hasSession: boolean } -const FN_CHECK_UPDATES = "liveChat.checkMachineUpdates" as const -const FN_LIST_MESSAGES = "liveChat.listMachineMessages" as const -const FN_POST_MESSAGE = "liveChat.postMachineMessage" as const -const FN_MARK_READ = "liveChat.markMachineMessagesRead" as const -const FN_UPLOAD_URL = "liveChat.generateMachineUploadUrl" as const +// Convex self-hosted exige o formato "module.js:function" +const FN_CHECK_UPDATES = "liveChat.js:checkMachineUpdates" as const +const FN_LIST_MESSAGES = "liveChat.js:listMachineMessages" as const +const FN_POST_MESSAGE = "liveChat.js:postMachineMessage" as const +const FN_MARK_READ = "liveChat.js:markMachineMessagesRead" as const +const FN_UPLOAD_URL = "liveChat.js:generateMachineUploadUrl" as const async function loadStore(): Promise { const appData = await appLocalDataDir()