From 26a9dba22236bc22a7612107630282cfe02d20e0 Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Mon, 16 Aug 2021 18:10:23 +0200 Subject: chore: update outdated node_modules (#1807) - upgrade 'uuid', '@types/uuid', 'macos-version', 'normalize-url' and 'os-name' dependencies to latest - updated 'macos-version' imports to named imports --- src/internal-server/app/Controllers/Http/ServiceController.js | 6 ++---- 1 file changed, 2 insertions(+), 4 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 c76a287f7..dea5a888e 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 uuid = require('uuid/v4'); +const { v4: uuid } = require('uuid'); const path = require('path'); const fs = require('fs-extra'); const { LOCAL_HOSTNAME } = require('../../../../config'); @@ -156,9 +156,7 @@ 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