Skip to content

Commit

Permalink
const instead of let
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrabian committed Jan 6, 2025
1 parent 13fd021 commit 0217dfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/app-api/handlers/reports/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const createReport = handler(async (event, _context) => {
const fieldDataId: string = KSUID.randomSync().string;
const formTemplateId: string = formTemplateVersion?.id;

let validationSchema = formTemplate.validationJson;
const validationSchema = formTemplate.validationJson;
if (reportType === "NAAAR") {
// this entity does not have validation specified in the form template
validationSchema["analysisMethods"] = "objectArray";
Expand Down
2 changes: 1 addition & 1 deletion services/app-api/handlers/reports/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const updateReport = handler(async (event, context) => {
return internalServerError(error.MISSING_FORM_TEMPLATE);
}

let validationSchema = formTemplate.validationJson;
const validationSchema = formTemplate.validationJson;
if (reportType === "NAAAR") {
// this entity does not have validation specified in the form template
validationSchema["analysisMethods"] = "objectArray";
Expand Down

0 comments on commit 0217dfd

Please sign in to comment.