mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08: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