fix(core): inherit sortIndex when creating version stack container

This commit is contained in:
yiling
2026-06-15 20:38:46 +08:00
parent 45318d1eec
commit 2858274e52
4 changed files with 9 additions and 0 deletions
@@ -56,6 +56,7 @@ describe('VersionStackService', () => {
creatorId: user.id,
status: 'uploaded',
sizeByte: 100,
sortIndex: 'abc',
},
})
@@ -85,6 +86,7 @@ describe('VersionStackService', () => {
expect(stack.fileCount).toBe(2)
expect(stack.sizeByte).toBe(300)
expect(stack.parentId).toBe(parent.id)
expect(stack.sortIndex).toBe('abc')
// Verify Parent file count
const updatedParent = await prisma.asset.findUnique({ where: { id: parent.id } })