This repository was archived by the owner on Oct 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/app/api/system/checks Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export async function GET(request, { params }) {
64
64
65
65
// perform checks on these repositories
66
66
// use the owners github token (repository->user->account.access_token)
67
- let runs = { attempted : [ ] , sucessful : [ ] } ;
67
+ let runs = { attempted : [ ] , successful : [ ] } ;
68
68
repoStatus . run . map ( async ( repo ) => {
69
69
try {
70
70
const responses = await getAllRepoData ( repo . url , repo . token ) ;
@@ -103,7 +103,7 @@ export async function GET(request, { params }) {
103
103
} ,
104
104
} ) ;
105
105
106
- runs . sucessful . push ( { url : repo . url } ) ;
106
+ runs . successful . push ( { url : repo . url } ) ;
107
107
} catch ( e ) {
108
108
console . error ( e ) ;
109
109
runs . attempted . push ( { url : repo . url } ) ;
@@ -113,7 +113,8 @@ export async function GET(request, { params }) {
113
113
console . log ( "CHECKS PERFORMED" , runs ) ;
114
114
115
115
return Response . json ( {
116
- runs : runs . length ,
116
+ runs : runs . successful . length ,
117
+ failed : runs . attempted . length ,
117
118
ignores : repoStatus . ignore . length ,
118
119
errors : repoStatus . error . length ,
119
120
} ) ;
You can’t perform that action at this time.
0 commit comments