Skip to content

Commit

Permalink
remove tenant endpoints, move merge-suggestion endppoints
Browse files Browse the repository at this point in the history
  • Loading branch information
epipav committed Jan 15, 2025
1 parent 1482924 commit a838ca8
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 214 deletions.
2 changes: 1 addition & 1 deletion backend/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ setImmediate(async () => {
app.use(segmentMiddleware)

require('./auditLog').default(routes)
require('./tenant').default(routes)
require('./merge-suggestions').default(routes)
require('./user').default(routes)
require('./settings').default(routes)
require('./member').default(routes)
Expand Down
9 changes: 9 additions & 0 deletions backend/src/api/merge-suggestions/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { safeWrap } from '../../middlewares/errorMiddleware'

export default (app) => {
app.post(`/membersToMerge`, safeWrap(require('./membersToMergeList').default))
app.post(
`/organizationsToMerge`,
safeWrap(require('./organizationsToMergeList').default),
)
}
29 changes: 0 additions & 29 deletions backend/src/api/tenant/index.ts

This file was deleted.

29 changes: 0 additions & 29 deletions backend/src/api/tenant/tenantCreate.ts

This file was deleted.

17 changes: 0 additions & 17 deletions backend/src/api/tenant/tenantDestroy.ts

This file was deleted.

40 changes: 0 additions & 40 deletions backend/src/api/tenant/tenantFind.ts

This file was deleted.

24 changes: 0 additions & 24 deletions backend/src/api/tenant/tenantFindName.ts

This file was deleted.

16 changes: 0 additions & 16 deletions backend/src/api/tenant/tenantInvitationAccept.ts

This file was deleted.

13 changes: 0 additions & 13 deletions backend/src/api/tenant/tenantInvitationDecline.ts

This file was deleted.

13 changes: 0 additions & 13 deletions backend/src/api/tenant/tenantList.ts

This file was deleted.

15 changes: 0 additions & 15 deletions backend/src/api/tenant/tenantUpdate.ts

This file was deleted.

7 changes: 0 additions & 7 deletions backend/src/api/tenant/tenantViewContacts.ts

This file was deleted.

7 changes: 0 additions & 7 deletions backend/src/api/tenant/tenantViewOrganizations.ts

This file was deleted.

3 changes: 0 additions & 3 deletions backend/src/services/conversationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@ import telemetryTrack from '../segment/telemetryTrack'

import { IServiceOptions } from './IServiceOptions'
import { s3 } from './aws'
import ConversationSettingsService from './conversationSettingsService'
import getStage from './helpers/getStage'
import IntegrationService from './integrationService'
import SettingsService from './settingsService'
import TenantService from './tenantService'

export default class ConversationService extends LoggerBase {
static readonly MAX_SLUG_WORD_LENGTH = 10
Expand Down

0 comments on commit a838ca8

Please sign in to comment.