Skip to content

Commit

Permalink
cleanup, add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
talentedmrjones committed Jan 7, 2025
1 parent 9748c2a commit bc32f0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion backend/cmd/api/internal/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ func respond(w http.ResponseWriter, r *http.Request, data any, err error) {
}

if err != nil {

status, err = sanitizeErr(err)
switch e := err.(type) {
case *model.InvalidInputError:
Expand Down
1 change: 1 addition & 0 deletions backend/cmd/api/internal/model/usersfismasystems.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func (uf *UserFismaSystem) Save(ctx context.Context) (*UserFismaSystem, error) {
return nil, err
}

// TODO: fix issue where inserting the same (userid, fismasystemid) twice returns error. It should effectively upsert
sqlb := stmntBuilder.Insert("userid, fismasystemid").
Into("users_fismasystems").
Values(uf.UserID, uf.FismaSystemID).
Expand Down

0 comments on commit bc32f0d

Please sign in to comment.