Skip to content

Commit

Permalink
Merge pull request #208 from kzi-nastava/feat/enhance-enrollmentreque…
Browse files Browse the repository at this point in the history
…st-class

[fix] EnrollmentRequest Update method
  • Loading branch information
natasakasikovic authored Apr 29, 2024
2 parents 5802a6f + 428943e commit 9025b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LangLang/Core/Model/DAO/EnrollmentRequestDAO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public EnrollmentRequest Add(EnrollmentRequest enrollmentRequest)
EnrollmentRequest? oldRequest = GetEnrollmentRequestById(enrollmentRequest.Id);
if (oldRequest == null) return null;

oldRequest.Status = enrollmentRequest.Status;
oldRequest.UpdateStatus(enrollmentRequest.Status);
oldRequest.IsCanceled = enrollmentRequest.IsCanceled;
oldRequest.LastModifiedTimestamp = DateTime.Now;
_repository.Save(_enrollmentRequests);
Expand Down

0 comments on commit 9025b70

Please sign in to comment.