Skip to content

Commit c11e902

Browse files
Merge pull request #2072 from OneCommunityGlobal/venkataramanan_fix_leaderboard_info_icon_text
Venkataramanan fix: leaderboard info icon text
2 parents 9f6b803 + 78298a3 commit c11e902

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/controllers/informationController.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,10 @@ const informationController = function (Information) {
6666
const updateInformation = function (req, res) {
6767
Information.findOneAndUpdate({ _id: req.params.id }, req.body, { new: true })
6868
.then((updatedInformation) => {
69-
// remove cache if cache is available
7069
if (cache.hasCache('informations')) {
7170
cache.removeCache('informations');
72-
return;
7371
}
74-
res.status(200).send(updatedInformation);
72+
return res.status(200).send(updatedInformation);
7573
})
7674
.catch((error) => res.status(400).send(error));
7775
};

0 commit comments

Comments
 (0)