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')
|
.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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue