fix(version-stack): resolve correct latest version ID of version stack

This commit is contained in:
yiling
2026-07-04 20:56:31 +08:00
parent 5f6847a373
commit 481c1ff8ba
2 changed files with 56 additions and 1 deletions
+1 -1
View File
@@ -909,7 +909,7 @@ export class AssetService {
if (currentType === AssetType.version_stack) {
const latestChild = await this.prismaClient.asset.findFirst({
where: { parentId: currentId, isDeleted: false },
orderBy: { sortIndex: 'desc' },
orderBy: { sortIndex: 'asc' },
select: { id: true },
})
if (latestChild) {