Skip to content

Commit

Permalink
fix(service-providers): change file insert priority
Browse files Browse the repository at this point in the history
  • Loading branch information
hqer927 committed Jun 12, 2024
1 parent 601c63d commit 08d3973
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions service-providers/fastboard/src/file-insert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,19 +224,6 @@ export async function insertDocs(
}
return;
}

if (convertingStatus.prefix) {
// new Projector PPTX conversion
await fastboardApp.insertDocs({
fileType: "pptx",
title: file.fileName,
scenePath: `/${taskUUID}/${uuidv4()}`,
taskId: taskUUID!,
url: convertingStatus.prefix,
});
return;
}

if (convertingStatus.images) {
// other docs
await fastboardApp.manager.addApp({
Expand All @@ -249,6 +236,18 @@ export async function insertDocs(
});
return;
}

if (convertingStatus.prefix) {
// new Projector PPTX conversion
await fastboardApp.insertDocs({
fileType: "pptx",
title: file.fileName,
scenePath: `/${taskUUID}/${uuidv4()}`,
taskId: taskUUID!,
url: convertingStatus.prefix,
});
return;
}
}
}

Expand Down

0 comments on commit 08d3973

Please sign in to comment.