mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-01 05:14:25 +00:00
fix(workflow): map sizeByte BigInt to Number in getAssetActivity for Temporal serialization
This commit is contained in:
@@ -49,12 +49,18 @@ export async function getAssetActivity(assetId: string) {
|
||||
if (latestVersion) {
|
||||
return {
|
||||
...latestVersion,
|
||||
sizeByte: Number(latestVersion.sizeByte),
|
||||
project: latestVersion.project ?? asset.project,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return asset
|
||||
if (!asset) return null
|
||||
|
||||
return {
|
||||
...asset,
|
||||
sizeByte: Number(asset.sizeByte),
|
||||
}
|
||||
}
|
||||
|
||||
export interface UpdateTaskStatusParams {
|
||||
|
||||
Reference in New Issue
Block a user