• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

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.67
/src/app/application/user/query/getDiscordIntegration/GetDiscordIntegrationQueryHandler.ts
1
import { Inject, NotFoundException } from '@nestjs/common';
2
import { IQueryHandler, QueryHandler } from '@nestjs/cqrs';
1✔
3

4
import { GetDiscordIntegrationQuery } from '@khlug/app/application/user/query/getDiscordIntegration/GetDiscordIntegrationQuery';
5
import { GetDiscordIntegrationQueryResult } from '@khlug/app/application/user/query/getDiscordIntegration/GetDiscordIntegrationQueryResult';
1✔
6
import {
7
  DiscordIntegrationQueryToken,
8
  IDiscordIntegrationQuery,
4✔
9
} from '@khlug/app/application/user/query/IDiscordIntegrationQuery';
10

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

1✔
13
@QueryHandler(GetDiscordIntegrationQuery)
1✔
14
export class GetDiscordIntegrationQueryHandler
1✔
15
  implements
1✔
16
    IQueryHandler<GetDiscordIntegrationQuery, GetDiscordIntegrationQueryResult>
1✔
17
{
18
  constructor(
2!
NEW
19
    @Inject(DiscordIntegrationQueryToken)
×
20
    private readonly discordIntegrationQuery: IDiscordIntegrationQuery,
21
  ) {}
22

23
  async execute(
24
    query: GetDiscordIntegrationQuery,
25
  ): Promise<GetDiscordIntegrationQueryResult> {
26
    const { userId } = query;
2✔
27

28
    const view = await this.discordIntegrationQuery.findByUserId(userId);
2✔
29

30
    if (!view) {
31
      throw new NotFoundException(Message.DISCORD_INTEGRATION_NOT_FOUND);
1!
32
    }
1!
NEW
33

×
34
    return new GetDiscordIntegrationQueryResult(view);
1!
35
  }
36
}
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