]> PHS Git Server - phs-api.git/commitdiff
Fixing closures on app.js file.
authorcharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 18:53:23 +0000 (13:53 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Mon, 8 Sep 2025 18:53:23 +0000 (13:53 -0500)
src/controllers/vpn.controller.js

index d725d8ac2b604b663c516592cf6a4a4625ae3d70..59a3ad3bbfaaedd7f3b7734dde418458a3abeb2b 100644 (file)
@@ -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', () => {