add .code extension to files without file names

This commit is contained in:
Thomas 2021-04-24 17:59:06 +12:00 committed by GitHub
parent 16f123233b
commit aeda95a215
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}));