fix(workflow): map sizeByte BigInt to Number in getAssetActivity for Temporal serialization

This commit is contained in:
yiling
2026-07-29 22:31:25 +08:00
parent cd8a9e58fd
commit 668871b730
3 changed files with 19 additions and 2 deletions
@@ -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 {