Skip to content

Commit

Permalink
Merge pull request #1 from dylanjamesdev/main
Browse files Browse the repository at this point in the history
Update create.js
  • Loading branch information
dylanjamesdev authored Jun 26, 2022
2 parents b88067c + 50a27dc commit 8be66b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/api/comments/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
import dbConnectionInit from '../../../libs/database/dbConnection';
import postModel from '../../../libs/database/models/posts';


export default async function createComment(req, res) {
dbConnectionInit();

if (req.method === 'POST') {
if (!req.query.id){
return res.status(400).json({
Expand Down

0 comments on commit 8be66b1

Please sign in to comment.