File tree 3 files changed +8
-293
lines changed
3 files changed +8
-293
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ function get_job(job_info, available_runtimes) {
51
51
let {
52
52
language,
53
53
version,
54
+ runtime,
54
55
args,
55
56
stdin,
56
57
files,
@@ -80,15 +81,20 @@ function get_job(job_info, available_runtimes) {
80
81
}
81
82
}
82
83
84
+ const has_runtime =
85
+ job_info . has_own_property ( 'runtime' ) && job_info . runtime !== null ;
86
+
83
87
const rt = available_runtimes . find (
84
88
rt =>
85
89
[ ...rt . aliases , rt . language ] . includes ( language ) &&
86
- ( version === rt . version || version === '*' )
90
+ ( version === rt . version || version === '*' ) &&
91
+ ( ! has_runtime || runtime === rt . runtime )
87
92
) ;
88
93
89
94
if ( rt === undefined ) {
95
+ const runtime_str = has_runtime ? `${ runtime } -` : '' ;
90
96
return reject ( {
91
- message : `${ language } -${ version } runtime is unknown` ,
97
+ message : `${ runtime_str } ${ language } -${ version } runtime is unknown` ,
92
98
} ) ;
93
99
}
94
100
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -87,9 +87,7 @@ expressWs(app);
87
87
logger . debug ( 'Registering Routes' ) ;
88
88
89
89
const api_v2 = require ( '../api/v2' ) ;
90
- const api_v3 = require ( '../api/v3' ) ;
91
90
app . use ( '/api/v2' , api_v2 ) ;
92
- app . use ( '/api/v3' , api_v3 ) ;
93
91
94
92
app . use ( ( req , res , next ) => {
95
93
return res . status ( 404 ) . send ( { message : 'Not Found' } ) ;
You can’t perform that action at this time.
0 commit comments