Skip to content

Commit c34250f

Browse files
committed
fix mapbox
1 parent 9158a07 commit c34250f

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

components/mapbox/actions/create-tileset/create-tileset.mjs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,12 @@ export default {
4444
},
4545
},
4646
async run({ $ }) {
47-
const filePath = this.filePath.includes("tmp/")
48-
? this.filePath
49-
: `/tmp/${this.filePath}`;
50-
5147
// Create Tileset Source
5248
try {
5349
const fileData = new FormData();
5450
const {
5551
stream, metadata,
56-
} = await getFileStreamAndMetadata(filePath);
52+
} = await getFileStreamAndMetadata(this.filePath);
5753
fileData.append("file", stream, {
5854
contentType: metadata.contentType,
5955
knownLength: metadata.size,
@@ -68,7 +64,7 @@ export default {
6864
headers: fileData.getHeaders(),
6965
});
7066
} catch (e) {
71-
throw new Error(`Error uploading file: \`${filePath}\`. Error: ${e}`);
67+
throw new Error(`Error uploading file: \`${this.filePath}\`. Error: ${e}`);
7268
}
7369

7470
const recipe = typeof this.recipe === "string"

components/pdf4me/actions/convert-to-pdf/convert-to-pdf.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export default {
1414
pdf4me,
1515
"filePath",
1616
],
17-
description: "The path to a DOCX, XLSX, or PPTX file in the `/tmp` directory. [See the documentation on working with files](https://pipedream.com/docs/code/nodejs/working-with-files/#writing-a-file-to-tmp)",
1817
},
1918
filename: {
2019
propDefinition: [

0 commit comments

Comments
 (0)