From f7ea6e8fd3009eea92f1080ef769bab47a07509d Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Fri, 24 Apr 2026 12:10:22 +0100 Subject: [PATCH] fix(base): hide soft-deleted properties from base info payload The withProperties subquery hydrating /bases/info was missing a `deleted_at IS NULL` filter, so after a delete the socket-echo invalidation refetched and the just-deleted column rehydrated on the originating client and never dropped on others. --- apps/server/src/database/repos/base/base.repo.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/server/src/database/repos/base/base.repo.ts b/apps/server/src/database/repos/base/base.repo.ts index fe11375f1..8a987521b 100644 --- a/apps/server/src/database/repos/base/base.repo.ts +++ b/apps/server/src/database/repos/base/base.repo.ts @@ -143,6 +143,7 @@ export class BaseRepo { .selectFrom('baseProperties') .selectAll('baseProperties') .whereRef('baseProperties.baseId', '=', 'bases.id') + .where('baseProperties.deletedAt', 'is', null) .orderBy('baseProperties.position', 'asc'), ).as('properties'); }