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