From f29a3edcab19b2e592f486d0724e7df010a9f16a Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Mon, 23 Mar 2026 18:30:49 +0200 Subject: [PATCH] chore: update postgresql.conf and contracts comments for Zero - Replace Electric SQL references in postgresql.conf with Zero-cache - Clean Electric SQL comments in chat-comments.types.ts and chat-messages.types.ts --- docker/postgresql.conf | 4 ++-- surfsense_web/contracts/types/chat-comments.types.ts | 2 +- surfsense_web/contracts/types/chat-messages.types.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/postgresql.conf b/docker/postgresql.conf index 99b29ba30..d0936dce8 100644 --- a/docker/postgresql.conf +++ b/docker/postgresql.conf @@ -1,11 +1,11 @@ -# PostgreSQL configuration for Electric SQL +# PostgreSQL configuration for SurfSense # This file is mounted into the PostgreSQL container listen_addresses = '*' max_connections = 200 shared_buffers = 256MB -# Enable logical replication (required for Electric SQL) +# Enable logical replication (required for Zero-cache real-time sync) wal_level = logical max_replication_slots = 10 max_wal_senders = 10 diff --git a/surfsense_web/contracts/types/chat-comments.types.ts b/surfsense_web/contracts/types/chat-comments.types.ts index cdeca0a44..a7751917e 100644 --- a/surfsense_web/contracts/types/chat-comments.types.ts +++ b/surfsense_web/contracts/types/chat-comments.types.ts @@ -6,7 +6,7 @@ import { z } from "zod"; export const rawComment = z.object({ id: z.number(), message_id: z.number(), - thread_id: z.number(), // Denormalized for efficient Electric subscriptions + thread_id: z.number(), // Denormalized for efficient per-thread sync parent_id: z.number().nullable(), author_id: z.string().nullable(), content: z.string(), diff --git a/surfsense_web/contracts/types/chat-messages.types.ts b/surfsense_web/contracts/types/chat-messages.types.ts index 78bf7b043..0859f9f3b 100644 --- a/surfsense_web/contracts/types/chat-messages.types.ts +++ b/surfsense_web/contracts/types/chat-messages.types.ts @@ -1,7 +1,7 @@ import { z } from "zod"; /** - * Raw message from database (Electric SQL sync) + * Raw message from database (real-time sync) */ export const rawMessage = z.object({ id: z.number(),