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 {
23
23
} from '../../../shared/entities' ;
24
24
import { HiveError } from '../../../shared/errors' ;
25
25
import { atomic , cache , stringifySelector } from '../../../shared/helpers' ;
26
+ import { isUUID } from '../../../shared/is-uuid' ;
26
27
import { parseGraphQLSource } from '../../../shared/schema' ;
27
28
import { Session } from '../../auth/lib/authz' ;
28
29
import { GitHubIntegrationManager } from '../../integrations/providers/github-integration-manager' ;
@@ -685,6 +686,16 @@ export class SchemaManager {
685
686
schemaCheckId ,
686
687
) ;
687
688
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
+
688
699
const schemaCheck = await this . storage . findSchemaCheck ( {
689
700
targetId : target . id ,
690
701
schemaCheckId,
You can’t perform that action at this time.
0 commit comments