From a9952072c1e06691f7ab7cb93bff998ba0b05aaa Mon Sep 17 00:00:00 2001 From: Omar Brikaa Date: Sat, 12 Feb 2022 20:13:42 +0200 Subject: [PATCH] Revert pistond.js to avoid merge conflicts --- api/src/bin/pistond.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/api/src/bin/pistond.js b/api/src/bin/pistond.js index 9c0c2f0..c56cc99 100755 --- a/api/src/bin/pistond.js +++ b/api/src/bin/pistond.js @@ -39,13 +39,9 @@ expressWs(app); logger.info('Loading packages'); - const runtimes_data = cp - .execSync( - `nix eval --json ${config.flake_path}#pistonRuntimeSets.${config.runtime_set} --apply builtins.attrNames` - ) - .toString(); + const runtimes_data = cp.execSync(`nix eval --json ${config.flake_path}#pistonRuntimeSets.${config.runtime_set} --apply builtins.attrNames`).toString(); const runtimes = JSON.parse(runtimes_data); - + runtimes.for_each(pkg => runtime.load_runtime(pkg)); logger.info('Starting API Server');