From a29ee2834d43da15e55df8c2443b5b4ba437f363 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Thu, 17 Mar 2022 15:18:16 +0000 Subject: [PATCH] Added serializer for members.destroy refs: https://github.com/TryGhost/Toolbox/issues/245 - This was the only endpoint in the members API that didn't have a serializer - It just needs to be a simple passthrough, but we define it so we can change the default --- core/server/api/canary/utils/serializers/output/members.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/server/api/canary/utils/serializers/output/members.js b/core/server/api/canary/utils/serializers/output/members.js index aa4ac4d283..ec8c8dabd5 100644 --- a/core/server/api/canary/utils/serializers/output/members.js +++ b/core/server/api/canary/utils/serializers/output/members.js @@ -9,6 +9,8 @@ module.exports = { read: createSerializer('read', singleMember), edit: createSerializer('edit', singleMember), add: createSerializer('add', singleMember), + destroy: createSerializer('destroy', passthrough), + editSubscription: createSerializer('editSubscription', singleMember), createSubscription: createSerializer('createSubscription', singleMember), bulkDestroy: createSerializer('bulkDestroy', passthrough),