From 806ce0ba48ad2c8875f90644810d714ee7c1508a Mon Sep 17 00:00:00 2001 From: anilb Date: Mon, 2 Oct 2023 13:37:21 +0200 Subject: [PATCH] temporal api endpoint removed --- backend/src/api/organization/index.ts | 4 ---- .../organizationGenerateMergeMembers.ts | 17 ----------------- 2 files changed, 21 deletions(-) delete mode 100644 backend/src/api/organization/organizationGenerateMergeMembers.ts diff --git a/backend/src/api/organization/index.ts b/backend/src/api/organization/index.ts index 2613e77c69..9d69c713a9 100644 --- a/backend/src/api/organization/index.ts +++ b/backend/src/api/organization/index.ts @@ -21,10 +21,6 @@ export default (app) => { safeWrap(require('./organizationMerge').default), ) - app.get( - `/tenant/:tenantId/org/organization-merge-suggestions`, - safeWrap(require('./organizationGenerateMergeMembers').default), - ) app.put( `/tenant/:tenantId/organization/:organizationId/no-merge`, safeWrap(require('./organizationNotMerge').default), diff --git a/backend/src/api/organization/organizationGenerateMergeMembers.ts b/backend/src/api/organization/organizationGenerateMergeMembers.ts deleted file mode 100644 index 74b44354cc..0000000000 --- a/backend/src/api/organization/organizationGenerateMergeMembers.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { OrganizationMergeSuggestionType } from '@crowd/types' -import OrganizationService from '@/services/organizationService' -import track from '../../segment/track' - -export default async (req, res) => { - // new PermissionChecker(req).validateHas(Permissions.values.organizationEdit) - - const payload = await new OrganizationService(req).getMergeSuggestions( - OrganizationMergeSuggestionType.SAME_IDENTITY, - ) - - track('Getting merge suggestions', { ...payload }, { ...req }) - - const status = 200 - - await req.responseHandler.success(req, res, payload, status) -}