Skip to content

Commit

Permalink
remove let
Browse files Browse the repository at this point in the history
  • Loading branch information
grapigeau authored Nov 2, 2023
1 parent 6397a39 commit eb50716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/signoffs/signoffController.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ const addSignoff = async (req, res, next) => {
let createdSignoff;
const validationResults = validateObjectsFromUser(req.body);
if (existingSignoffs == null || !existingSignoffs.length) {
let createdSignoff = await upsert(
createdSignoff = await upsert(
req.params.caseIdentifier,
validationResults
);
} else {
// signoff step + deliverable are same, delete the old signoff record and add new one
let createdSignoff = await upsert(
createdSignoff = await upsert(
req.params.caseIdentifier,
validationResults,
existingSignoffs[0].id
Expand Down

0 comments on commit eb50716

Please sign in to comment.