Skip to content

Commit

Permalink
fix: remove unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
frnandu committed Oct 18, 2024
1 parent 78c2faa commit e7ae82c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func NewAPI(svc service.Service, gormDB *gorm.DB, config config.Config, keys key
}
}

func (api *api) CreateApp(ctx context.Context, createAppRequest *CreateAppRequest) (*CreateAppResponse, error) {
func (api *api) CreateApp(createAppRequest *CreateAppRequest) (*CreateAppResponse, error) {
expiresAt, err := api.parseExpiresAt(createAppRequest.ExpiresAt)
if err != nil {
return nil, fmt.Errorf("invalid expiresAt: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion api/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

type API interface {
CreateApp(ctx context.Context, createAppRequest *CreateAppRequest) (*CreateAppResponse, error)
CreateApp(createAppRequest *CreateAppRequest) (*CreateAppResponse, error)
UpdateApp(userApp *db.App, updateAppRequest *UpdateAppRequest) error
DeleteApp(userApp *db.App) error
GetApp(userApp *db.App) *App
Expand Down
2 changes: 1 addition & 1 deletion http/http_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ func (httpSvc *HttpService) appsCreateHandler(c echo.Context) error {
})
}

responseBody, err := httpSvc.api.CreateApp(c.Request().Context(), &requestData)
responseBody, err := httpSvc.api.CreateApp(&requestData)

if err != nil {
logger.Logger.WithField("requestData", requestData).WithError(err).Error("Failed to save app")
Expand Down

0 comments on commit e7ae82c

Please sign in to comment.