diff --git a/package-lock.json b/package-lock.json index 350f57f1c0..6686d8dd0d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -103,7 +103,7 @@ "prettier": "^3.3.3", "rimraf": "^6.0.1", "tsx": "^4.19.1", - "typescript": "^5.5.4", + "typescript": "^5.6.2", "vitest": "^2.0.5" } }, @@ -16119,9 +16119,10 @@ } }, "node_modules/typescript": { - "version": "5.5.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", - "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/package.json b/package.json index cd9c53ef9c..6a9c61f38f 100644 --- a/package.json +++ b/package.json @@ -141,7 +141,7 @@ "prettier": "^3.3.3", "rimraf": "^6.0.1", "tsx": "^4.19.1", - "typescript": "^5.5.4", + "typescript": "^5.6.2", "vitest": "^2.0.5" }, "overrides": { diff --git a/src/resolvers/Mutation/createVenue.ts b/src/resolvers/Mutation/createVenue.ts index f1f7398fdf..fa0cffed07 100644 --- a/src/resolvers/Mutation/createVenue.ts +++ b/src/resolvers/Mutation/createVenue.ts @@ -111,7 +111,7 @@ export const createVenue: MutationResolvers["createVenue"] = async ( } // Check if the venue name provided is an empty string. - if (!args.data?.name ?? "") { + if (!args.data?.name) { throw new errors.InputValidationError( requestContext.translate(VENUE_NAME_MISSING_ERROR.MESSAGE), VENUE_NAME_MISSING_ERROR.CODE,