Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RunOnFluxBot committed Jan 30, 2025
1 parent 2aa3d36 commit 25b99a0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions services/fluxService.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,11 @@ function enableStreaming() {
* @returns {Promise<object>} Message.
*/
async function fluxBackendFolder(req, res) {
// const projectRoot = process.env.FLUXOS_PATH;
const projectRoot = process.env.FLUXOS_PATH;

// const backendDir = projectRoot
// ? path.join(projectRoot, 'ZelBack')
// : path.join(__dirname, '../../');

const backendDir = '/dat/usr/lib/fluxos-canonical/ZelBack';
const backendDir = projectRoot
? path.join(projectRoot, 'ZelBack')
: path.join(__dirname, '../../');

const message = messageHelper.createDataMessage(backendDir);
return res.json(message);
Expand Down

0 comments on commit 25b99a0

Please sign in to comment.