Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
Small fixes
Hakan Shehu9ae3a3a6920e
diff --git a/desktop/src/main/synchronizer.ts b/desktop/src/main/synchronizer.tsindex 3826e0dd..b7f4683b 100644--- a/desktop/src/main/synchronizer.ts+++ b/desktop/src/main/synchronizer.ts@@ -44,19 +44,18 @@ class Synchronizer {change.workspaceId,change.data,);- if (executed) {- await mediator.executeMessage(- {- accountId,- deviceId: change.deviceId,- },- {- type: 'server_change_result',- changeId: change.id,- success: executed,- },- );- }++ await mediator.executeMessage(+ {+ accountId,+ deviceId: change.deviceId,+ },+ {+ type: 'server_change_result',+ changeId: change.id,+ success: executed,+ },+ );}private async executeServerChange(diff --git a/server/src/data/migrations.ts b/server/src/data/migrations.tsindex 6230c39a..9cc6feb6 100644--- a/server/src/data/migrations.ts+++ b/server/src/data/migrations.ts@@ -107,7 +107,6 @@ const createNodesTable: Migration = {const createClosureTable: Migration = {up: async (db) => {- // Create closure table for storing paths between nodesawait db.schema.createTable('node_paths').addColumn('ancestor_id', 'varchar(30)', (col) =>diff --git a/server/src/routes/sync.ts b/server/src/routes/sync.tsindex d77f44c3..b40607ea 100644--- a/server/src/routes/sync.ts+++ b/server/src/routes/sync.ts@@ -125,16 +125,16 @@ syncRouter.post(}const results: ServerSyncChangeResult[] = [];- for (const mutation of input.changes) {+ for (const change of input.changes) {try {- const result = await handleLocalChange(workspaceUser, mutation);+ const result = await handleLocalChange(workspaceUser, change);results.push({- id: mutation.id,+ id: change.id,status: result.status,});} catch (error) {results.push({- id: mutation.id,+ id: change.id,status: 'error',});}