Skip to content

Commit 6e4f758

Browse files
committed
CRUD Operation
1 parent 0c1183c commit 6e4f758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/contactController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const deleteContact = asyncHandler(async (req,res)=>{
6464
throw new Error("Contact not found")
6565
}
6666
const deletedContect = await Contact.findOneAndDelete();
67-
res.status(200).json(deletedContect);
67+
res.status(200).json(deletedContect);
6868
});
6969

7070

0 commit comments

Comments
 (0)