Skip to content

Commit

Permalink
fix: hardcode ambiguous form name for builder
Browse files Browse the repository at this point in the history
  • Loading branch information
ViRb3 committed Aug 12, 2021
1 parent 8c90537 commit 8c60ad6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ var formNames = assets.FormNames{
FormIdCustomText: "id_custom_text",
FormIdEncode: "id_encode",
FormIdForceOriginal: "id_force_original",
FormBundleId: "bundle_id",
}

func main() {
Expand Down Expand Up @@ -212,7 +211,7 @@ func uploadSignedApp(c echo.Context, job *storage.ReturnJob) error {
return err
}
defer file.Close()
if err := app.SetSigned(file, c.FormValue(formNames.FormBundleId)); err != nil {
if err := app.SetSigned(file, c.FormValue("bundle_id")); err != nil {
return err
}
if !storage.Jobs.DeleteById(job.Id) {
Expand Down
1 change: 0 additions & 1 deletion src/assets/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ type FormNames struct {
FormIdCustomText string
FormIdEncode string
FormIdForceOriginal string
FormBundleId string
}

type IndexData struct {
Expand Down

0 comments on commit 8c60ad6

Please sign in to comment.