Skip to content

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

Fix the query for retreiving unsynced transactions

Hakan Shehu0d439fb03086
diff --git a/apps/server/src/services/synapse.ts b/apps/server/src/services/synapse.ts
index ee56c629..b8081a87 100644
--- a/apps/server/src/services/synapse.ts
+++ b/apps/server/src/services/synapse.ts
@@ -188,7 +188,7 @@ class SynapseService {
let query = database
.selectFrom('node_transactions as nt')
- .leftJoin('collaborations as c', (join) =>
+ .innerJoin('collaborations as c', (join) =>
join.on('c.user_id', '=', userId).onRef('c.node_id', '=', 'nt.node_id')
)
.selectAll('nt');