[SILO-445] fix: bind assets object to function (#3913)

- in protect, bind assets instance to the calling
function
This commit is contained in:
Surya Prashanth
2025-08-14 19:12:22 +05:30
committed by GitHub
parent e3067091cd
commit b0b2dec18a

View File

@@ -184,7 +184,7 @@ export class NotionPhaseOneMigrator extends NotionMigratorBase {
const parsed = mimetics.parse(content);
// Upload the asset and get the asset id
const assetId = await protect(
client.assets.uploadAsset,
client.assets.uploadAsset.bind(client.assets),
job.workspace_slug,
new File([content], node.name, {
type: parsed?.mime,