mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 10:48:42 +00:00
feat(db): update Asset.sizeByte and AiUsage token fields to BigInt
This commit is contained in:
@@ -84,7 +84,7 @@ describe('VersionStackService', () => {
|
||||
expect(stack.name).toBe('')
|
||||
expect(stack.type).toBe(AssetType.version_stack)
|
||||
expect(stack.fileCount).toBe(2)
|
||||
expect(stack.sizeByte).toBe(300)
|
||||
expect(Number(stack.sizeByte)).toBe(300)
|
||||
expect(stack.parentId).toBe(parent.id)
|
||||
expect(stack.sortIndex).toBe('abc')
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ export class VersionStackService {
|
||||
} else if (f.parentId !== parentId) {
|
||||
throw new Error('files do not have the same parent')
|
||||
}
|
||||
totalSize += f.sizeByte
|
||||
totalSize += Number(f.sizeByte)
|
||||
}
|
||||
|
||||
if (!parentId) {
|
||||
|
||||
Reference in New Issue
Block a user