From 287680f9cf65d36f46a7aa6b833d9793d9d5b5eb Mon Sep 17 00:00:00 2001 From: Shinsina Date: Tue, 30 Nov 2021 12:16:50 -0600 Subject: [PATCH] Use template literal directly, property assignment --- .../graphql-server/src/graphql/resolvers/platform/content.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/graphql-server/src/graphql/resolvers/platform/content.js b/services/graphql-server/src/graphql/resolvers/platform/content.js index a1ba5e22d..ebcdeb42d 100644 --- a/services/graphql-server/src/graphql/resolvers/platform/content.js +++ b/services/graphql-server/src/graphql/resolvers/platform/content.js @@ -876,8 +876,7 @@ module.exports = { }); customAttributes.forEach(({ key, value }) => { - const fullKeyPath = `customAttributes.${key}`; - query.$and.push({ [fullKeyPath]: value }); + query.$and.push({ [`customAttributes.${key}`]: value }); }); const siteId = input.siteId || site.id();