File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
packages/services/api/src/modules/schema/providers Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import {
2323} from '../../../shared/entities' ;
2424import { HiveError } from '../../../shared/errors' ;
2525import { atomic , cache , stringifySelector } from '../../../shared/helpers' ;
26+ import { isUUID } from '../../../shared/is-uuid' ;
2627import { parseGraphQLSource } from '../../../shared/schema' ;
2728import { Session } from '../../auth/lib/authz' ;
2829import { GitHubIntegrationManager } from '../../integrations/providers/github-integration-manager' ;
@@ -685,6 +686,16 @@ export class SchemaManager {
685686 schemaCheckId ,
686687 ) ;
687688
689+ if ( isUUID ( schemaCheckId ) === false ) {
690+ this . logger . debug (
691+ 'Invalid ID provided (targetId=%s, schemaCheckId=%s)' ,
692+ target . id ,
693+ schemaCheckId ,
694+ ) ;
695+
696+ return null ;
697+ }
698+
688699 const schemaCheck = await this . storage . findSchemaCheck ( {
689700 targetId : target . id ,
690701 schemaCheckId,
You can’t perform that action at this time.
0 commit comments