Skip to content

Commit

Permalink
Removed unnecessary consoles in database repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
AdwaithAthman committed Dec 19, 2023
1 parent 71e39bb commit b74c871
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export const commentRepositoryMongoDB = () => {
},
},
]);
console.log("replies: ", replies);
return replies;
};

Expand Down Expand Up @@ -176,7 +175,6 @@ export const commentRepositoryMongoDB = () => {
},
},
]);
console.log("comment: ", comment);
return comment[0];
} catch (err) {
console.log(err);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const messageRepositoryMongoDB = () => {

const fetchNotifications = async (notificationIds: string[]) => {
try {
console.log("notificationIds: ", notificationIds);
const notifications = await Message.aggregate([
{
$match: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export const postRepositoryMongoDB = () => {
const getPostById = async (postId: string) => {
try {
const postObjId = new mongoose.Types.ObjectId(postId);
console.log(postObjId);
const post = await Post.aggregate([
{
$match: { _id: postObjId, isBlock: false },
Expand Down Expand Up @@ -302,7 +301,6 @@ export const postRepositoryMongoDB = () => {
limit: number
) => {
try {
console.log(following)
const posts = await Post.aggregate([
{
$match:
Expand Down

0 comments on commit b74c871

Please sign in to comment.