Skip to content

Commit 7c12a43

Browse files
committed
refactor(applications): simplify form data creation for app upload
1 parent bf6f1c6 commit 7c12a43

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/modules/applications.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,8 @@ export class ApplicationsModule {
6464
}
6565

6666
const formData = new FormData();
67-
formData.append(
68-
"file",
69-
new Blob([file], { type: "application/zip" }),
70-
"app.zip",
71-
);
67+
const blob = new Blob([file]);
68+
formData.append("file", blob, "app.zip");
7269

7370
const data = await this.client.api.request(Routes.apps.upload(), {
7471
method: "POST",

0 commit comments

Comments
 (0)