Skip to content

Commit

Permalink
Merge pull request #60 from ankush-maherwal/ankush-altv1
Browse files Browse the repository at this point in the history
Revert the code changes to block the users from being promoted in the…
  • Loading branch information
snehal0904 authored Aug 30, 2024
2 parents f4ea34e + cd1479c commit 3830285
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/adapters/hasura/altStudent.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,22 +174,22 @@ export class ALTStudentService {
});
}

if (
currentClass?.Group?.academicYear?.toString() ===
new Date().getFullYear().toString()
) {
// current year matches current academic year

return new ErrorResponse({
errorCode: "400",
errorMessage:
"Current Academic year and grade already added (" +
currentClass.Group.academicYear +
"-" +
currentClass.Group.name +
")",
});
}
// current year matches current academic year
// if (
// currentClass?.Group?.academicYear?.toString() ===
// new Date().getFullYear().toString()
// ) {

// return new ErrorResponse({
// errorCode: "400",
// errorMessage:
// "Current Academic year and grade already added (" +
// currentClass.Group.academicYear +
// "-" +
// currentClass.Group.name +
// ")",
// });
// }

const newGrade = Number(currentClass?.Group?.grade) + 1;

Expand Down

0 comments on commit 3830285

Please sign in to comment.