Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
HUNG-rushb committed Jan 7, 2024
1 parent ed152e5 commit 999be35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/resolvers/Mutation/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const postMutation = {
},
},
});
console.log({ post });
// console.log({ post });

const a = await prisma.notification.create({
data: {
Expand All @@ -61,7 +61,7 @@ const postMutation = {
userIds: follower.userFollower,
},
});
console.log({ a });
// console.log({ a });

sendNotificationToClient(
[
Expand All @@ -76,7 +76,7 @@ const postMutation = {
},
);
} catch (e) {
console.log(e);
// console.log(e);
throw e;
}

Expand Down
4 changes: 2 additions & 2 deletions src/resolvers/Query/CHAT.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ const chatQuery = {
});

if (!after) {
nodes = a.slice(0, 10).map((post) => ({
nodes = a.slice(0, 20).map((post) => ({
node: post,
cursor: post.id,
}));

// 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,
}));
Expand Down

0 comments on commit 999be35

Please sign in to comment.