Skip to content

Commit

Permalink
added logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rushidhanwant committed Mar 27, 2023
1 parent 4d6ee0a commit 47a9a07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/discord-bot/src/core/comments/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {communityHasSocial, getSocialCommunityId} from "../utils/data";

export const postComment = async (clients: Clients, req: Request, res: Response) => {
const {commentId} = req.body;
logger.info('core', {body: req.body});
const comment: Node<Comment> = await clients.composeQuery().fetchCommentDetails(commentId);
const socials = _.get(comment, "node.thread.community.socialPlatforms.edges");

Expand Down
1 change: 1 addition & 0 deletions apps/discord-bot/src/core/threads/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {logger} from "../utils/logger";

export const postThread = async (clients: Clients, req: Request, res: Response) => {
try {
logger.info('core', {body: req.body});
const {threadId} = req.body;
const thread: Node<Thread> = await clients.composeQuery().fetchThreadDetails(threadId);
const socials = _.get(thread, "node.community.socialPlatforms.edges");
Expand Down

0 comments on commit 47a9a07

Please sign in to comment.