Skip to content

Commit

Permalink
chore: ignore don't remove
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Nov 1, 2023
1 parent 7894480 commit 25a7820
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions echo_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ func (svc *Service) AppsNewHandler(c echo.Context) error {
appName := c.QueryParam("c") // c - for client
pubkey := c.QueryParam("pubkey")
returnTo := c.QueryParam("return_to")
// maxAmount := c.QueryParam("max_amount")
// budgetRenewal := strings.ToLower(c.QueryParam("budget_renewal"))
// expiresAt := c.QueryParam("expires_at") // YYYY-MM-DD or MM/DD/YYYY or timestamp in seconds
// if expiresAtTimestamp, err := strconv.Atoi(expiresAt); err == nil {
// expiresAt = time.Unix(int64(expiresAtTimestamp), 0).Format(time.RFC3339)
// }
// disabled := c.QueryParam("editable") == "false"
maxAmount := c.QueryParam("max_amount")
budgetRenewal := strings.ToLower(c.QueryParam("budget_renewal"))
expiresAt := c.QueryParam("expires_at") // YYYY-MM-DD or MM/DD/YYYY or timestamp in seconds
if expiresAtTimestamp, err := strconv.Atoi(expiresAt); err == nil {
expiresAt = time.Unix(int64(expiresAtTimestamp), 0).Format(time.RFC3339)
}
disabled := c.QueryParam("editable") == "false"
requestMethods := c.QueryParam("request_methods")
if requestMethods == "" {
// if no request methods are given, enable them all by default
Expand Down Expand Up @@ -302,12 +302,12 @@ func (svc *Service) AppsNewHandler(c echo.Context) error {
"Name": appName,
"Pubkey": pubkey,
"ReturnTo": returnTo,
// "MaxAmount": maxAmount,
// "BudgetRenewal": budgetRenewal,
// "ExpiresAt": expiresAt,
"MaxAmount": maxAmount,
"BudgetRenewal": budgetRenewal,
"ExpiresAt": expiresAt,
"RequestMethods": requestMethods,
"RequestMethodHelper": requestMethodHelper,
// "Disabled": disabled,
"Disabled": disabled,
"Csrf": csrf,
})
}
Expand Down

0 comments on commit 25a7820

Please sign in to comment.