fix: exclude trashed pages from position generation

This commit is contained in:
Philipinho
2025-08-04 00:00:06 -07:00
parent 97a7701f5d
commit aa6eec754e

View File

@ -109,6 +109,7 @@ export class PageService {
.selectFrom('pages')
.select(['position'])
.where('spaceId', '=', spaceId)
.where('deletedAt', 'is', null)
.orderBy('position', 'desc')
.limit(1);