Skip to content

Commit

Permalink
Fix build error cloudflare
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusefendi52 committed Dec 8, 2024
1 parent eb05500 commit 316206c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/AppFileUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ watchEffect(() => {
const { mutateAsync, isPending } = useMutation({
mutationFn: async (param: { file: File }) => {
const { artifactId } = await onUpload(param.file)
const { artifactId } = await onUpload(param.file, 'generate_bundle')
const groupIds = selectedGroup.value?.map(e => e.id) ?? []
if (artifactId && groupIds && groupIds.length) {
await $fetch('/api/update-artifact-groups', {
Expand Down Expand Up @@ -94,8 +94,8 @@ const submit = async () => {
})
}
const onUpload = async (file: File) => {
const data = await uploadArtifact(file, orgName.value, appName.value, releaseNotes.value, 'generate_bundle')
const onUpload = async (file: File, fileApk: string) => {
const data = await uploadArtifact(file, orgName.value, appName.value, releaseNotes.value, fileApk)
return {
artifactId: data!.artifactId,
}
Expand Down

0 comments on commit 316206c

Please sign in to comment.