mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 05:49:40 +02:00
[SILO-445] fix: bind assets object to function (#3913)
- in protect, bind assets instance to the calling function
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user