Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Fix query subscription in web (#262)

Hakan Shehu262e2d9d519c
diff --git a/apps/web/src/workers/dedicated.ts b/apps/web/src/workers/dedicated.ts
index 83397dd8..59998c6d 100644
--- a/apps/web/src/workers/dedicated.ts
+++ b/apps/web/src/workers/dedicated.ts
@@ -369,7 +369,7 @@ const api: ColanodeWorkerApi = {
return Promise.reject(new Error('App not initialized'));
}
- return app.mediator.executeQuery(input);
+ return app.mediator.executeQueryAndSubscribe(key, windowId, input);
},
async unsubscribeQuery(key) {
if (!appInitOutput) {