Skip to content

Commit

Permalink
chore(server): remove BillingService (#648)
Browse files Browse the repository at this point in the history
* chore(server): remove BillingService

* cleanup
  • Loading branch information
spg authored Jan 12, 2024
1 parent c378813 commit 5ac5b45
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 108 deletions.
5 changes: 0 additions & 5 deletions packages/server/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Framework } from '@botpress/messaging-framework'
import { BillingService } from './billing/service'
import { ChannelService } from './channels/service'
import { ConduitService } from './conduits/service'
import { ConversationService } from './conversations/service'
Expand Down Expand Up @@ -35,7 +34,6 @@ export class App extends Framework {
syncs: SyncService
health: HealthService
sockets: SocketService
billing: BillingService
metrics: MetricsService

constructor() {
Expand Down Expand Up @@ -94,7 +92,6 @@ export class App extends Framework {
this.instances
)
this.sockets = new SocketService(this.caching, this.users)
this.billing = new BillingService(this.logger, this.conversations, this.messages)
this.metrics = new MetricsService(this.conversations, this.messages)
}

Expand Down Expand Up @@ -127,12 +124,10 @@ export class App extends Framework {
await super.monitor()
await this.syncs.setup()
await this.instances.monitor()
await this.billing.setup()
}

async destroy() {
await super.destroy()
await this.billing?.destroy()
await this.instances?.destroy()
await this.metrics?.destroy()
}
Expand Down
101 changes: 0 additions & 101 deletions packages/server/src/billing/service.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/server/src/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ export type MessagingEnv = FrameworkEnv & {
SPINNED_URL?: string
NO_LAZY_LOADING?: string
TWILIO_TESTING?: string
BILLING_ENDPOINT?: string
ENABLE_BILLING_STATS?: string
DISABLE_SOCKETS?: string
ENABLE_LEGACY_CHANNELS?: string
METRICS_ENABLED?: string
Expand Down

0 comments on commit 5ac5b45

Please sign in to comment.