Fix runtime finding in v2 endpoint
This commit is contained in:
parent
e767a6eafc
commit
d33e47e60a
|
@ -50,6 +50,7 @@ const SIGNALS = [
|
||||||
function get_job(job_info, available_runtimes) {
|
function get_job(job_info, available_runtimes) {
|
||||||
let {
|
let {
|
||||||
language,
|
language,
|
||||||
|
version,
|
||||||
args,
|
args,
|
||||||
stdin,
|
stdin,
|
||||||
files,
|
files,
|
||||||
|
@ -79,8 +80,10 @@ function get_job(job_info, available_runtimes) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const rt = available_runtimes.find(rt =>
|
const rt = available_runtimes.find(
|
||||||
[...rt.aliases, rt.language].includes(rt.language)
|
rt =>
|
||||||
|
[...rt.aliases, rt.language].includes(language) &&
|
||||||
|
(version === rt.version || version === '*')
|
||||||
);
|
);
|
||||||
|
|
||||||
if (rt === undefined) {
|
if (rt === undefined) {
|
||||||
|
|
Loading…
Reference in New Issue