From bbed06e2ba255199703343625129712ef7707697 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 16 Aug 2021 23:13:06 +0530 Subject: Revert "chore: update outdated node_modules (#1807)" This reverts commit 26a9dba22236bc22a7612107630282cfe02d20e0. --- src/internal-server/app/Controllers/Http/ServiceController.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/internal-server/app/Controllers/Http/ServiceController.js') diff --git a/src/internal-server/app/Controllers/Http/ServiceController.js b/src/internal-server/app/Controllers/Http/ServiceController.js index dea5a888e..c76a287f7 100644 --- a/src/internal-server/app/Controllers/Http/ServiceController.js +++ b/src/internal-server/app/Controllers/Http/ServiceController.js @@ -2,7 +2,7 @@ const Service = use('App/Models/Service'); const { validateAll } = use('Validator'); const Env = use('Env'); -const { v4: uuid } = require('uuid'); +const uuid = require('uuid/v4'); const path = require('path'); const fs = require('fs-extra'); const { LOCAL_HOSTNAME } = require('../../../../config'); @@ -156,7 +156,9 @@ class ServiceController { id, name: service.name, ...newSettings, - iconUrl: `http://${hostname}:${port}/v1/icon/${newSettings.iconId}`, + iconUrl: `http://${hostname}:${port}/v1/icon/${ + newSettings.iconId + }`, userId: 1, }, status: ['updated'], -- cgit v1.2.3-54-g00ecf