Skip to content

Commit

Permalink
removed grade_id from required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahugunajii committed Jan 24, 2025
1 parent b6b7574 commit 420afee
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 420afee

Please sign in to comment.