From efc59dd31542cd4a9083362f60f75bfe5b33e9bd Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Mon, 6 May 2024 21:18:23 +0200 Subject: [PATCH] Fixed extra parameter to function - `serializeTier` only takes 2 parameters - flagged by tsserver --- .../server/api/endpoints/utils/serializers/output/tiers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/core/core/server/api/endpoints/utils/serializers/output/tiers.js b/ghost/core/core/server/api/endpoints/utils/serializers/output/tiers.js index ea1c71aa12..09fe71db4b 100644 --- a/ghost/core/core/server/api/endpoints/utils/serializers/output/tiers.js +++ b/ghost/core/core/server/api/endpoints/utils/serializers/output/tiers.js @@ -20,7 +20,7 @@ module.exports = { function paginatedTiers(page, _apiConfig, frame) { return { tiers: page.data.map((model) => { - return serializeTier(model, frame.options, frame); + return serializeTier(model, frame.options); }), meta: page.meta }; @@ -36,7 +36,7 @@ function paginatedTiers(page, _apiConfig, frame) { function singleTier(model, _apiConfig, frame) { return { tiers: [ - serializeTier(model, frame.options, frame) + serializeTier(model, frame.options) ] }; }