-
-
Notifications
You must be signed in to change notification settings - Fork 77
RE1-T46 bug fixes #296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RE1-T46 bug fixes #296
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -201,7 +201,7 @@ public async Task<IEnumerable<Log>> GetAllLogsByDepartmentIdYearAsync(int depart | |
| { | ||
| var dynamicParameters = new DynamicParametersExtension(); | ||
| dynamicParameters.Add("DepartmentId", departmentId); | ||
| dynamicParameters.Add("Year", int.Parse(year)); | ||
| dynamicParameters.Add("Year", int.TryParse(year, out var parsedYear) ? parsedYear : DateTime.UtcNow.Year); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't substitute malformed Line 204 turns invalid input into a valid-but-wrong filter. Because Prefer failing validation upstream, or at minimum only apply a fallback for 🤖 Prompt for AI Agents |
||
|
|
||
| var query = _queryFactory.GetQuery<SelecAllLogsByDidYearQuery>(); | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.