Skip to content

Commit

Permalink
add educationGap to errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shalearkane committed Jan 29, 2024
1 parent 42b6200 commit 8102230
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
1. Go stores empty arrays as null by default
2. Omitempty doesnot work on structs
2. Omitempty doesnot work on structs
3. Our datetimes are in UTC
5 changes: 3 additions & 2 deletions handler/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (h *Handler) MigrateStudentDataToV2FormatType1(ctx *gin.Context) {
oldStudent.CompaniesAlloted = []string{}
}

errorArray := []string{}
errorArray := []string{"educationGap"}
var EndYearOffset int
var Course Constant.Course

Expand Down Expand Up @@ -209,6 +209,7 @@ func (h *Handler) MigrateStudentDataToV2FormatType1(ctx *gin.Context) {
ActiveBacklogs: oldStudent.ActiveBacklogs,
TotalBacklogs: oldStudent.TotalBacklogs,
},
WorkExperience: []Student.WorkExperience{},
SocialProfiles: Student.SocialProfiles{
LinkedIn: Student.SocialProfile{
URL: oldStudent.LinkedIn,
Expand Down Expand Up @@ -260,7 +261,7 @@ func (h *Handler) MigrateStudentDataToV2FormatType2(ctx *gin.Context) {
oldStudent.CompaniesAlloted = []string{}
}

errorArray := []string{}
errorArray := []string{"educationGap"}
var EndYearOffset int
var Course Constant.Course

Expand Down

0 comments on commit 8102230

Please sign in to comment.