Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shalearkane committed Jan 31, 2024
1 parent f60091b commit fde919b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func GetXXIIYear(cursor *mongo.Cursor) (int, int) {

func (h *Handler) MigrateStudentDataToV2(ctx *gin.Context) {
studentCollection := h.MongikClient.MongoClient.Database(Constant.DB).Collection(Constant.StudentCollection)
cursor, errFind := studentCollection.Find(ctx, bson.D{{Key: "versiont", Value: bson.D{{Key: "$exists", Value: false}}}})
cursor, errFind := studentCollection.Find(ctx, bson.D{{Key: "version", Value: bson.D{{Key: "$exists", Value: false}}}})
if errFind != nil {
ctx.AbortWithStatusJSON(400, gin.H{"count": 0, "error": errFind.Error(), "reason": "Find not successful"})
return
Expand Down

0 comments on commit fde919b

Please sign in to comment.