X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=otf-frontend%2Fserver%2Fsrc%2Ffeathers%2Fservices%2Fjobs%2Fjobs.hooks.js;fp=otf-frontend%2Fserver%2Fsrc%2Ffeathers%2Fservices%2Fjobs%2Fjobs.hooks.js;h=0844bd5001ec759e446db48911e93c5c46cbd304;hb=cf067bb8bd9b45e79a85e9612a0f4c5abeb727b8;hp=eec6d190bc46a0cdc3cdd9f8c9ec22f3ab3aeb93;hpb=596b1d89c5f63170ed40abb6f7b9395178c5e44e;p=it%2Fotf.git diff --git a/otf-frontend/server/src/feathers/services/jobs/jobs.hooks.js b/otf-frontend/server/src/feathers/services/jobs/jobs.hooks.js index eec6d19..0844bd5 100644 --- a/otf-frontend/server/src/feathers/services/jobs/jobs.hooks.js +++ b/otf-frontend/server/src/feathers/services/jobs/jobs.hooks.js @@ -119,7 +119,7 @@ module.exports = { (context) => { console.log("AFTER PERMISSIONS")}, canExecute(), async (context) => { - const fullUrl = this.options.app.get('otf').url + context.app.get('base-path') + 'schedule-test'; + const fullUrl = context.app.get('otf').url + context.app.get('base-path') + 'schedule-test'; context.data.executorId = context.params.user._id; @@ -155,7 +155,7 @@ module.exports = { permissions('jobs'), canExecute(), async function (context) { - const fullUrl = this.options.app.get('otf').url + context.app.get('base-path') + 'cancel-test'; + const fullUrl = context.app.get('otf').url + context.app.get('base-path') + 'cancel-test'; if (context.id == null || context.params.user._id == null || utils.isValidObjectId(context.id) || utils.isValidObjectId(context.params.user._id)) {