Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ebsite into react-rendering
  • Loading branch information
SupritBehera committed Jul 20, 2021
2 parents 5ee5b84 + 5f56c72 commit c15d0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports.getBlog = async (req, res) => {

exports.postBlog = async (req, res) => {
try {
let writer = await User.findOne({ email: req.body.WrittenBy });
let writer = await Member.findOne({ collegeEmail: req.body.WrittenBy });

const newBlog = new Blog({
Title: req.body.Title,
Expand Down

0 comments on commit c15d0b0

Please sign in to comment.