@@ -64,14 +64,14 @@ class DOMjudgeFetcher extends BasicFetcher {
64
64
async contestInfo ( ) {
65
65
let contest ;
66
66
if ( ! config . contestId ) {
67
- const { body } = await fetch ( '/api/v4/contests?onlyActive=true' ) ;
67
+ const { body } = await fetch ( '. /api/v4/contests?onlyActive=true' ) ;
68
68
if ( ! body || ! body . length ) {
69
69
logger . error ( 'Contest not found' ) ;
70
70
return false ;
71
71
}
72
72
contest = body [ 0 ] ;
73
73
} else {
74
- const { body } = await fetch ( `/api/v4/contests/${ config . contestId } ` ) ;
74
+ const { body } = await fetch ( `. /api/v4/contests/${ config . contestId } ` ) ;
75
75
if ( ! body || ! body . id ) {
76
76
logger . error ( `Contest ${ config . contestId } not found` ) ;
77
77
return false ;
@@ -88,7 +88,7 @@ class DOMjudgeFetcher extends BasicFetcher {
88
88
}
89
89
90
90
async teamInfo ( ) {
91
- const { body } = await fetch ( `/api/v4/contests/${ this . contest . id } /teams` ) ;
91
+ const { body } = await fetch ( `. /api/v4/contests/${ this . contest . id } /teams` ) ;
92
92
if ( ! body || ! body . length ) return ;
93
93
const teams = body ;
94
94
for ( const team of teams ) {
@@ -99,7 +99,7 @@ class DOMjudgeFetcher extends BasicFetcher {
99
99
100
100
async balloonInfo ( all ) {
101
101
if ( all ) logger . info ( 'Sync all balloons...' ) ;
102
- const { body } = await fetch ( `/api/v4/contests/${ this . contest . id } /balloons?todo=${ all ? 'false' : 'true' } ` ) ;
102
+ const { body } = await fetch ( `. /api/v4/contests/${ this . contest . id } /balloons?todo=${ all ? 'false' : 'true' } ` ) ;
103
103
if ( ! body || ! body . length ) return ;
104
104
const balloons = body ;
105
105
for ( const balloon of balloons ) {
@@ -136,7 +136,7 @@ class DOMjudgeFetcher extends BasicFetcher {
136
136
}
137
137
138
138
async setBalloonDone ( bid ) {
139
- await fetch ( `/api/v4/contests/${ this . contest . id } /balloons/${ bid } /done` , 'post' ) ;
139
+ await fetch ( `. /api/v4/contests/${ this . contest . id } /balloons/${ bid } /done` , 'post' ) ;
140
140
logger . debug ( `Balloon ${ bid } set done` ) ;
141
141
}
142
142
}
0 commit comments