mirror of
https://github.com/docmost/docmost.git
synced 2026-08-29 10:05:03 +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')
|
.selectFrom('baseProperties')
|
||||||
.selectAll('baseProperties')
|
.selectAll('baseProperties')
|
||||||
.whereRef('baseProperties.baseId', '=', 'bases.id')
|
.whereRef('baseProperties.baseId', '=', 'bases.id')
|
||||||
|
.where('baseProperties.deletedAt', 'is', null)
|
||||||
.orderBy('baseProperties.position', 'asc'),
|
.orderBy('baseProperties.position', 'asc'),
|
||||||
).as('properties');
|
).as('properties');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user