mirror of
https://github.com/docmost/docmost.git
synced 2026-06-10 01:52:43 +08:00
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:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user