• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Build has been canceled!

khu-khlug / sight-backend / 13659749000

04 Mar 2025 05:47PM UTC coverage: 53.458% (-3.7%) from 57.19%
13659749000

push

github

web-flow
feat: 디스코드 연동 (#106)

719 of 2152 branches covered (33.41%)

Branch coverage included in aggregate %.

126 of 273 new or added lines in 29 files covered. (46.15%)

3 existing lines in 2 files now uncovered.

2025 of 2981 relevant lines covered (67.93%)

13.14 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.07
/src/app/application/user/command/removeDiscordIntegration/RemoveDiscordIntegrationCommandHandler.ts
1
import { Inject, NotFoundException } from '@nestjs/common';
2
import { CommandHandler, ICommandHandler } from '@nestjs/cqrs';
1✔
3

4
import { RemoveDiscordIntegrationCommand } from '@khlug/app/application/user/command/removeDiscordIntegration/RemoveDiscordIntegrationCommand';
5

1✔
6
import {
7
  DiscordIntegrationRepositoryToken,
8
  IDiscordIntegrationRepository,
4✔
9
} from '@khlug/app/domain/discord/IDiscordIntegrationRepository';
10

11
import { Message } from '@khlug/constant/message';
1✔
12

1✔
13
@CommandHandler(RemoveDiscordIntegrationCommand)
1✔
14
export class RemoveDiscordIntegrationCommandHandler
1✔
15
  implements ICommandHandler<RemoveDiscordIntegrationCommand>
1✔
16
{
17
  constructor(
2!
NEW
18
    @Inject(DiscordIntegrationRepositoryToken)
×
19
    private readonly discordIntegrationRepository: IDiscordIntegrationRepository,
20
  ) {}
21

22
  async execute(command: RemoveDiscordIntegrationCommand): Promise<void> {
23
    const { userId } = command;
24

25
    const discordIntegration =
2✔
26
      await this.discordIntegrationRepository.findByUserId(userId);
27
    if (!discordIntegration) {
2✔
28
      throw new NotFoundException(Message.DISCORD_INTEGRATION_NOT_FOUND);
29
    }
30

1!
31
    await this.discordIntegrationRepository.remove(discordIntegration);
1!
NEW
32
  }
×
33
}
1!
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc