From bc8f8979c112c6b5849c72fdad025d605008ebf8 Mon Sep 17 00:00:00 2001 From: Nazar Gargol Date: Mon, 8 Jul 2019 17:53:29 +0200 Subject: [PATCH] Removed stray use of `urlService.utils` refs #10773 - All instances of `urlService.utils` were previously migrated to use standalone SDK module `url-utils` --- core/server/api/v2/utils/serializers/output/utils/url.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/server/api/v2/utils/serializers/output/utils/url.js b/core/server/api/v2/utils/serializers/output/utils/url.js index cfb5bc7ac1..04ebb98e8a 100644 --- a/core/server/api/v2/utils/serializers/output/utils/url.js +++ b/core/server/api/v2/utils/serializers/output/utils/url.js @@ -24,11 +24,9 @@ const forPost = (id, attrs, frame) => { */ if (!localUtils.isContentAPI(frame)) { if (attrs.status !== 'published' && attrs.url.match(/\/404\//)) { - attrs.url = urlService - .utils - .urlFor({ - relativeUrl: urlUtils.urlJoin('/p', attrs.uuid, '/') - }, null, true); + attrs.url = urlUtils.urlFor({ + relativeUrl: urlUtils.urlJoin('/p', attrs.uuid, '/') + }, null, true); } }