refactor(api): collapse single-impl interfaces and facades (#3382)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-10 23:04:42 +02:00
1 parent e7b13fd19f
commit c16d414d93
426 files changed
+2085 -6445

No files matched your search

@@ -3,7 +3,7 @@
import type {ChannelID, GuildID, MessageID, UserID, WebhookID, WebhookToken} from '@app/api/BrandedTypes';
import {createUserID} from '@app/api/BrandedTypes';
import {Config} from '@app/api/Config';
import type {IChannelRepository} from '@app/api/channel/IChannelRepository';
import type {ChannelRepository} from '@app/api/channel/ChannelRepository';
import type {MessageUpdateRequest} from '@app/api/channel/MessageTypes';
import {createMessageResponseDataService} from '@app/api/channel/services/message/MessageResponseDataService';
import {maskThreadArtifactsFor} from '@app/api/channel/services/message/ThreadMessageResponses';
@@ -180,7 +180,7 @@ interface SweegoWebhookParams {
export class WebhookRequestService {
constructor(
private readonly webhookService: WebhookService,
private readonly channelRepository: IChannelRepository,
private readonly channelRepository: ChannelRepository,
private readonly userCacheService: UserCacheService,
private readonly liveKitWebhookService: LiveKitWebhookService | null,
private readonly sweegoWebhookService: SweegoWebhookService,
@@ -410,7 +410,7 @@ export class WebhookRequestService {
}
private async mapMessageResponse(message: Message, _requestCache: RequestCache): Promise<MessageResponse> {
const channel = await this.channelRepository.findUnique(message.channelId);
const channel = await this.channelRepository.channelData.findUnique(message.channelId);
const response = await createMessageResponseDataService().buildMessage({
userId: createUserID(0n),
message,