Skip to content

Commit

Permalink
fix: use correct variables in course update func
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Prinz authored and Philip Prinz committed Sep 10, 2024
1 parent 1e25311 commit 7d4f95b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v3/services/coursesvc/internal/courseservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func (c CourseServer) UpdateFunc(w http.ResponseWriter, r *http.Request) {

var isLearnPathStrict bool
if isLearnPathStrictRaw != "" {
isLearnPath, err = strconv.ParseBool(isLearnPathStrictRaw)
isLearnPathStrict, err = strconv.ParseBool(isLearnPathStrictRaw)
if err != nil {
glog.Errorf("error while parsing bool: %v", err)
util.ReturnHTTPMessage(w, r, 500, "internalerror", "error parsing")
Expand All @@ -349,7 +349,7 @@ func (c CourseServer) UpdateFunc(w http.ResponseWriter, r *http.Request) {

var inCatalog bool
if inCatalogRaw != "" {
isLearnPath, err = strconv.ParseBool(inCatalogRaw)
inCatalog, err = strconv.ParseBool(inCatalogRaw)
if err != nil {
glog.Errorf("error while parsing bool: %v", err)
util.ReturnHTTPMessage(w, r, 500, "internalerror", "error parsing")
Expand Down

0 comments on commit 7d4f95b

Please sign in to comment.