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.
This commit is contained in:
Philipinho
2026-04-24 12:10:22 +01:00
parent dcff8d3c53
commit f7ea6e8fd3
@@ -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');
}