Skip to content

Commit

Permalink
Merge pull request #259 from avantifellows/main
Browse files Browse the repository at this point in the history
removed grade_id from required fields
  • Loading branch information
Bahugunajii authored Jan 24, 2025
2 parents 9ead4b6 + 420afee commit 69ae762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dbservice/enrollment_record/enrollment_record.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule Dbservice.EnrollmentRecords.EnrollmentRecord do

@doc false
def changeset(enrollment_record, attrs) do
required_fields = [:user_id, :group_id, :group_type, :start_date, :grade_id]
required_fields = [:user_id, :group_id, :group_type, :start_date]

group_type = Map.get(attrs, "group_type") || Map.get(enrollment_record, :group_type)

Expand Down

0 comments on commit 69ae762

Please sign in to comment.