Skip to content

Commit

Permalink
Fixes extra parameter in application
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryan51203 committed Dec 23, 2024
1 parent df29f28 commit b205949
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/db/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func GetAllApplication() ([]Application, error) {
for rows.Next() {
var t Application

err = rows.Scan(&t.ID, &t.Name, &t.RedirectURL, &t.AllowedDomains, &t.UpdatedAt, &t.Organization, &t.CreatedAt, &t.ClientKey, &t.ClientSecret)
err = rows.Scan(&t.ID, &t.Name, &t.RedirectURL, &t.AllowedDomains, &t.Organization, &t.CreatedAt, &t.ClientKey, &t.ClientSecret)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -122,7 +122,7 @@ func GetApplication(client_key string, client_secret string) (Application, error

var t Application

err = db.QueryRow(sqlStatement, client_key, client_secret).Scan(&t.ID, &t.Name, &t.RedirectURL, &t.AllowedDomains, &t.UpdatedAt, &t.Organization, &t.CreatedAt, &t.ClientKey, &t.ClientSecret)
err = db.QueryRow(sqlStatement, client_key, client_secret).Scan(&t.ID, &t.Name, &t.RedirectURL, &t.AllowedDomains, &t.Organization, &t.CreatedAt, &t.ClientKey, &t.ClientSecret)

if err != nil {
return Application{}, err
Expand Down
1 change: 0 additions & 1 deletion pkg/db/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ type Application struct {
Name string `json:"name"`
RedirectURL string `json:"redirect_url"`
AllowedDomains string `json:"allowed_domains"`
UpdatedAt string `json:"updated_at"`
Organization string `json:"organization"`
CreatedAt string `json:"created_at"`
ClientKey string `json:"client_key"`
Expand Down

0 comments on commit b205949

Please sign in to comment.