diff --git a/src/resolvers/Mutation/post.js b/src/resolvers/Mutation/post.js index 871f96f..f3a84c8 100644 --- a/src/resolvers/Mutation/post.js +++ b/src/resolvers/Mutation/post.js @@ -49,7 +49,7 @@ const postMutation = { }, }, }); - console.log({ post }); + // console.log({ post }); const a = await prisma.notification.create({ data: { @@ -61,7 +61,7 @@ const postMutation = { userIds: follower.userFollower, }, }); - console.log({ a }); + // console.log({ a }); sendNotificationToClient( [ @@ -76,7 +76,7 @@ const postMutation = { }, ); } catch (e) { - console.log(e); + // console.log(e); throw e; } diff --git a/src/resolvers/Query/CHAT.js b/src/resolvers/Query/CHAT.js index 55c1452..1b66825 100644 --- a/src/resolvers/Query/CHAT.js +++ b/src/resolvers/Query/CHAT.js @@ -37,7 +37,7 @@ const chatQuery = { }); if (!after) { - nodes = a.slice(0, 10).map((post) => ({ + nodes = a.slice(0, 20).map((post) => ({ node: post, cursor: post.id, })); @@ -45,7 +45,7 @@ const chatQuery = { // console.log({ nodes }); } else { const index = a.findIndex((post) => post.id === after); - nodes = a.slice(index + 1, index + 10).map((post) => ({ + nodes = a.slice(index + 1, index + 20).map((post) => ({ node: post, cursor: post.id, }));