Skip to content

Commit

Permalink
linter adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
akulsharma1 committed Oct 19, 2023
1 parent 2f39dab commit b0e9ac7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/profile/profile-router.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ beforeEach(async () => {
Models.initialize();
});

let profile: ProfileFormat = {
const profile: ProfileFormat = {
userId: TESTER.id,
displayName: TESTER.name,
avatarUrl: TESTER.avatarUrl,
Expand Down
5 changes: 4 additions & 1 deletion src/services/profile/profile-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@ profileRouter.delete("/", strongJwtVerification, async (_: Request, res: Respons
const attendeeProfileDeleteResponse: DeleteResult = await Models.AttendeeProfile.deleteOne({ userId: decodedData.id });
const attendeeMetadataDeleteResponse: DeleteResult = await Models.AttendeeMetadata.deleteOne({ userId: decodedData.id });

if (attendeeMetadataDeleteResponse.deletedCount == 0 || attendeeProfileDeleteResponse.deletedCount == 0) {
if (
attendeeMetadataDeleteResponse.deletedCount == Constants.ZERO ||
attendeeProfileDeleteResponse.deletedCount == Constants.ZERO
) {
return res.status(Constants.NOT_FOUND).send({ success: false, error: "AttendeeNotFound" });
}
return res.status(Constants.SUCCESS).send({ success: true });
Expand Down

0 comments on commit b0e9ac7

Please sign in to comment.