fix: exclude trashed pages from position generation
This commit is contained in:
parent
97a7701f5d
commit
aa6eec754e
1 changed files with 1 additions and 0 deletions
|
|
@ -109,6 +109,7 @@ export class PageService {
|
|||
.selectFrom('pages')
|
||||
.select(['position'])
|
||||
.where('spaceId', '=', spaceId)
|
||||
.where('deletedAt', 'is', null)
|
||||
.orderBy('position', 'desc')
|
||||
.limit(1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue