From b0b2dec18ad9255b5285823fffc98bfa19ec653c Mon Sep 17 00:00:00 2001 From: Surya Prashanth Date: Thu, 14 Aug 2025 19:12:22 +0530 Subject: [PATCH] [SILO-445] fix: bind assets object to function (#3913) - in protect, bind assets instance to the calling function --- apps/silo/src/apps/notion-importer/worker/phases/phase-one.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/silo/src/apps/notion-importer/worker/phases/phase-one.ts b/apps/silo/src/apps/notion-importer/worker/phases/phase-one.ts index 7502bc75eb..a518d06cba 100644 --- a/apps/silo/src/apps/notion-importer/worker/phases/phase-one.ts +++ b/apps/silo/src/apps/notion-importer/worker/phases/phase-one.ts @@ -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,