From: charleswrayjr Date: Mon, 8 Sep 2025 18:53:23 +0000 (-0500) Subject: Fixing closures on app.js file. X-Git-Url: https://git.phasecustomsoft.com/?a=commitdiff_plain;h=ba31983d9b5946cd6862b03bc68ad4153d38c580;p=phs-api.git Fixing closures on app.js file. --- diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index d725d8a..59a3ad3 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -126,7 +126,7 @@ module.exports = { } ).connect( sshConfig ); }, getClients:async ( req, res, next ) => { - const error = new Error( 'Not implemented yet' ); + const error = new createError( 400, 'Not implemented yet' ); next( error ); /*const conn = new Client(); conn.on( 'ready', () => {