mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 04:56:30 +02:00
add .code extension to files without file names
This commit is contained in:
parent
16f123233b
commit
aeda95a215
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class Job {
|
|||
this.uuid = uuidv4();
|
||||
this.runtime = runtime;
|
||||
this.files = files.map((file,i) => ({
|
||||
name: file.name || `file${i}`,
|
||||
name: file.name || `file${i}.code`,
|
||||
content: file.content
|
||||
}));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue