From 02a99f32cb047a0994146eb718e45f8221eaa693 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 5 Aug 2021 16:40:39 +0100 Subject: [PATCH] updating attachment relative path so it works in all envs --- packages/server/src/utilities/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/utilities/index.js b/packages/server/src/utilities/index.js index 3e9f6abc5d..eab4265c19 100644 --- a/packages/server/src/utilities/index.js +++ b/packages/server/src/utilities/index.js @@ -54,6 +54,6 @@ exports.clientLibraryPath = appId => { exports.attachmentsRelativeURL = attachmentKey => { return exports.checkSlashesInUrl( - `/${ObjectStoreBuckets.APPS}/${attachmentKey}` + `${exports.objectStoreUrl()}/${attachmentKey}` ) }