Skip to content
Snippets Groups Projects
Commit dc7694e9 authored by Nathanael Santoso's avatar Nathanael Santoso
Browse files

fix(course): updated web model to reflect reality

parent 61550b2d
Branches
Tags
3 merge requests!47Final Updates,!43Fix/s5 sb 46 backend pembelajaran,!42[Feat] [Release!] [#1] Project Release Commit
......@@ -80,10 +80,7 @@ type UpdateCourseRequestPayload struct {
Email string `json:"email" validate:"required,email" example:"someone@example.com"`
// Course Name Abbreviation
Abbreviation string `json:"abbreviation" validate:"required"`
// Course Lecturer
Lecturer string `json:"lecturer" validate:"required"`
Abbreviation string `json:"abbreviation"`
}
......@@ -51,7 +51,6 @@ func (c CourseServiceImpl) UpdateCourse(payload course.UpdateCourseRequestPayloa
Description: payload.Description,
Email: payload.Email,
Abbreviation: payload.Abbreviation,
Lecturer: payload.Lecturer,
})
if err != nil {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment