Skip to content

Commit

Permalink
refactor(analyze): changed averagemood -> averagetone for better cons…
Browse files Browse the repository at this point in the history
…istency
  • Loading branch information
Ali-Aftab committed Feb 17, 2021
1 parent bea6c45 commit 0c20726
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/controllers/analyze.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports.searchSentences = async (req, res) => {
}
};

module.exports.detectAverageMood = async (req, res) => {
module.exports.detectAverageTone = async (req, res) => {
try {
const { userId } = req;
let averageMood;
Expand Down
4 changes: 2 additions & 2 deletions server/routes/analyze.route.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const {
searchEntries,
searchSentences,
detectAverageMood,
detectAverageTone,
} = require("../controllers/analyze.controller");
const { authJwt } = require("../middleware");

Expand All @@ -21,5 +21,5 @@ module.exports = function (app) {
searchSentences
);

app.get("/api/analyze/averagemood", [authJwt.verifyToken], detectAverageMood);
app.get("/api/analyze/averagetone", [authJwt.verifyToken], detectAverageTone);
};

0 comments on commit 0c20726

Please sign in to comment.