Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions controllers/articles.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,9 @@ module.exports.getAllArticles = async (req, res) => {
module.exports.getFeed = async (req, res) => {
try {
const query = `
SELECT UserEmail
FROM followers
WHERE followerEmail = "${req.user.email}"`;
SELECT "UserEmail"
FROM "Followers"
WHERE "followerEmail" = '${req.user.email}'`;
const followingUsers = await sequelize.query(query);
if (followingUsers[0].length == 0) {
return res.json({ articles: [] });
Expand Down