mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-06 08:04:37 +00:00
fix(version-stack): resolve correct latest version ID of version stack
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user