Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(server): remove BillingService #648

Merged
merged 2 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading