From 4fc6379348d55ffe390316ca8fffe056a42830ff Mon Sep 17 00:00:00 2001 From: meetul Date: Sat, 2 Nov 2024 11:14:03 +0530 Subject: [PATCH] coderabbitai changes --- package.json | 2 +- src/resolvers/UserTag/usersToAssignTo.ts | 2 +- .../graphQLConnection/getUserTagGraphQLConnectionFilter.ts | 4 ++-- .../getUserTagMemberGraphQLConnectionFilter.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 091ed8c123..589e3b6e55 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "./build/server.js", "scripts": { "build": "tsc --pretty --project tsconfig.build.json", - "dev": "concurrently \"tsx --watch ./src/index.ts\" \"graphql-codegen --watch\"", + "dev": "concurrently \"tsx ./src/index.ts\" \"graphql-codegen --watch\"", "minio:check": "tsc ./src/minioInstallationCheck.ts --outDir ./build && node ./build/minioInstallationCheck.js", "dev:with-minio": "concurrently \"npm run minio:check\" \"tsx --watch ./src/index.ts\" \"graphql-codegen --watch\"", "start:with-minio": "concurrently \"npm run minio:check\" \"cross-env pm2-runtime start ./build/server.js\"", diff --git a/src/resolvers/UserTag/usersToAssignTo.ts b/src/resolvers/UserTag/usersToAssignTo.ts index b7dbee0bbb..54698aeb0e 100644 --- a/src/resolvers/UserTag/usersToAssignTo.ts +++ b/src/resolvers/UserTag/usersToAssignTo.ts @@ -126,7 +126,7 @@ export const usersToAssignTo: UserTagResolvers["usersToAssignTo"] = async ( { $match: { ...totalCountFilter, - joinedOrganizations: parent.organizationId, + joinedOrganizations: { $in: [parent.organizationId] }, }, }, ...commonPipeline, diff --git a/src/utilities/graphQLConnection/getUserTagGraphQLConnectionFilter.ts b/src/utilities/graphQLConnection/getUserTagGraphQLConnectionFilter.ts index 4fb1dad8a3..09980f8bc6 100644 --- a/src/utilities/graphQLConnection/getUserTagGraphQLConnectionFilter.ts +++ b/src/utilities/graphQLConnection/getUserTagGraphQLConnectionFilter.ts @@ -9,7 +9,7 @@ import type { */ type UserTagGraphQLConnectionFilter = | { - _id: { + _id?: { $lt: string; }; name: { @@ -17,7 +17,7 @@ type UserTagGraphQLConnectionFilter = }; } | { - _id: { + _id?: { $gt: string; }; name: { diff --git a/src/utilities/graphQLConnection/getUserTagMemberGraphQLConnectionFilter.ts b/src/utilities/graphQLConnection/getUserTagMemberGraphQLConnectionFilter.ts index 056d65ab97..311b4aa574 100644 --- a/src/utilities/graphQLConnection/getUserTagMemberGraphQLConnectionFilter.ts +++ b/src/utilities/graphQLConnection/getUserTagMemberGraphQLConnectionFilter.ts @@ -10,7 +10,7 @@ import type { */ type UserTagMemberGraphQLConnectionFilter = | { - _id: { + _id?: { $lt: Types.ObjectId; }; firstName: { @@ -21,7 +21,7 @@ type UserTagMemberGraphQLConnectionFilter = }; } | { - _id: { + _id?: { $gt: Types.ObjectId; }; firstName: {