File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ export interface PipelineRun {
435435 vm_image_build : unknown [ ] ; //TODO - @Venefilyn - No clue what it should be
436436}
437437
438- // /api/osh -scans
438+ // /api/openscanhub -scans
439439export interface OSHScanGroup {
440440 anitya_package : string | null ;
441441 anitya_project_id : number | null ;
@@ -461,7 +461,7 @@ export interface OSHScanGroup {
461461 url : string ;
462462}
463463
464- // /api/osh -scans/$id
464+ // /api/openscanhub -scans/$id
465465export interface OSHScan {
466466 anitya_package : string | null ;
467467 anitya_project_id : number | null ;
Original file line number Diff line number Diff line change @@ -13,9 +13,12 @@ export const fetchOSHScan = async ({
1313 id,
1414 signal,
1515} : fetchOSHScanProps ) : Promise < OSHScan > => {
16- const data = await fetch ( `${ import . meta. env . VITE_API_URL } /osh-scans/${ id } ` , {
17- signal,
18- } )
16+ const data = await fetch (
17+ `${ import . meta. env . VITE_API_URL } /openscanhub-scans/${ id } ` ,
18+ {
19+ signal,
20+ } ,
21+ )
1922 . then ( ( response ) => response . json ( ) )
2023 . catch ( ( err ) => {
2124 if ( err . status === 404 ) {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export const fetchScans = async ({
1414 signal,
1515} : fetchScansProps ) : Promise < OSHScanGroup [ ] > => {
1616 const data = await fetch (
17- `${ import . meta. env . VITE_API_URL } /osh -scans?page=${ pageParam } ` ,
17+ `${ import . meta. env . VITE_API_URL } /openscanhub -scans?page=${ pageParam } ` ,
1818 { signal } ,
1919 )
2020 . then ( ( response ) => response . json ( ) )
You can’t perform that action at this time.
0 commit comments