Skip to content

Commit cb76a0c

Browse files
committed
if the request contains a metadata field, save it
1 parent c0c94ad commit cb76a0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

conjure-aas.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ function submitHandler(req, res) {
3939
// create directory
4040
fs.mkdirSync(`conjure-output/${thisJobId}`, { recursive: true });
4141

42+
if (req.body.metadata !== undefined) {
43+
fs.writeFileSync(`conjure-output/${thisJobId}/metadata.json`, req.body.metadata);
44+
}
45+
4246
// we cache the essence + eprime in a model-cache to avoid rerunning conjure-modelling
4347
let cacheKey = md5(req.body.model.trim());
4448
let cacheHit = false;

0 commit comments

Comments
 (0)