We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd251f commit 8f9b626Copy full SHA for 8f9b626
src/api/post/post.controller.ts
@@ -18,7 +18,6 @@ const getCollection = () => {
18
export default class PostController {
19
public addPost = async (req: Request, res: Response): Promise<any> => {
20
const requestData = req.body;
21
- console.log(requestData);
22
const collection = getCollection();
23
const post = new Post(requestData);
24
try {
@@ -39,12 +38,10 @@ export default class PostController {
39
38
public getPost = async (req: Request, res: Response): Promise<any> => {
40
41
const id = req.params.id;
42
- console.log(id);
43
44
const post = await collection.findOne({
45
_id: new ObjectId(id),
46
});
47
- console.log(post);
48
49
res.send(
50
responses.successWithPayload(
0 commit comments