From aeda95a2157086b844a89d9c8e46b77a393870fb Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 24 Apr 2021 17:59:06 +1200 Subject: [PATCH] add .code extension to files without file names --- api/src/executor/job.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/executor/job.js b/api/src/executor/job.js index c0cd1a6..f7adec2 100644 --- a/api/src/executor/job.js +++ b/api/src/executor/job.js @@ -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 }));