mirror of
https://github.com/docmost/docmost.git
synced 2025-11-19 03:21:08 +10:00
fix: exclude trashed pages from position generation
This commit is contained in:
@ -109,6 +109,7 @@ export class PageService {
|
||||
.selectFrom('pages')
|
||||
.select(['position'])
|
||||
.where('spaceId', '=', spaceId)
|
||||
.where('deletedAt', 'is', null)
|
||||
.orderBy('position', 'desc')
|
||||
.limit(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user