Skip to content

Commit

Permalink
chore: remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajjs committed Jan 15, 2025
1 parent ff4c167 commit 31c470b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions controllers/onboardingExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,10 @@ export const updateOnboardingExtensionRequestController = async (
return res.boom.badRequest(INVALID_REQUEST_DEADLINE);
}

const currentDate = Date.now();

const requestBody = {
...body,
lastModifiedBy,
updatedAt: currentDate,
updatedAt: Date.now(),
}

await requestModel.doc(id).update(requestBody);
Expand All @@ -191,7 +189,6 @@ export const updateOnboardingExtensionRequestController = async (
requestId: extensionRequestDoc.id,
action: LOG_ACTION.UPDATE,
createdBy: lastModifiedBy,
createdAt: currentDate,
},
body: requestBody,
};
Expand Down

0 comments on commit 31c470b

Please sign in to comment.