File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function submitHandler(req, res) {
3939 // create directory
4040 fs . mkdirSync ( `conjure-output/${ thisJobId } ` , { recursive : true } ) ;
4141
42- if ( req . body . metadata !== undefined && req . body . message != false ) {
42+ if ( req . body . metadata !== undefined && req . body . message !== "" ) {
4343 fs . writeFileSync ( `conjure-output/${ thisJobId } /metadata.json` , req . body . metadata ) ;
4444 }
4545
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class ConjureClient {
3030 solve ( model , params = { } ) {
3131 const solver = params . solver || "kissat" ;
3232 const options = params . options || [ ] ;
33- const metadata = params . metadata || false ;
33+ const metadata = params . metadata || "" ;
3434 const metadata_str = typeof metadata === "string" ? metadata : JSON . stringify ( metadata ) ;
3535 const data = params . data || { } ;
3636 const data_str = typeof data === "string" ? data : JSON . stringify ( data ) ;
You can’t perform that action at this time.
0 commit comments