mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-24 14:06:27 +02:00
Fix the runtimes versions
This commit is contained in:
parent
61a833ca3c
commit
a749db950f
2 changed files with 4 additions and 4 deletions
|
@ -205,7 +205,7 @@ router.ws('/connect', async (ws, req) => {
|
|||
JSON.stringify({
|
||||
type: 'runtime',
|
||||
language: job.runtime.language,
|
||||
version: job.runtime.version.raw,
|
||||
version: job.runtime.version,
|
||||
})
|
||||
);
|
||||
|
||||
|
@ -278,7 +278,7 @@ router.get('/runtimes', (req, res) => {
|
|||
const runtimes = req.app.locals.runtimes.map(rt => {
|
||||
return {
|
||||
language: rt.language,
|
||||
version: rt.version.raw,
|
||||
version: rt.version,
|
||||
aliases: rt.aliases,
|
||||
runtime: rt.runtime,
|
||||
};
|
||||
|
|
|
@ -203,7 +203,7 @@ router.ws('/connect', async (ws, req) => {
|
|||
JSON.stringify({
|
||||
type: 'runtime',
|
||||
language: job.runtime.language,
|
||||
version: job.runtime.version.raw,
|
||||
version: job.runtime.version,
|
||||
})
|
||||
);
|
||||
|
||||
|
@ -276,7 +276,7 @@ router.get('/runtimes', (req, res) => {
|
|||
const runtimes = req.app.locals.runtimes.map((rt, index) => {
|
||||
return {
|
||||
language: rt.language,
|
||||
version: rt.version.raw,
|
||||
version: rt.version,
|
||||
aliases: rt.aliases,
|
||||
runtime: rt.runtime,
|
||||
id: index,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue