Skip to content

Commit

Permalink
chore: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
NedcloarBR committed Apr 7, 2024
1 parent a7b8b4d commit bda2670
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions Packages/Client/src/modules/api/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import { UserEntity } from "@/modules/shared/database/entities";
import { Cookies, Routes, Services, isInProduction } from "@/types/Constants";
import { Controller, Get, HttpCode, HttpStatus, Inject, Redirect, Req, Res, UseGuards } from "@nestjs/common";
import { ConfigService } from "@nestjs/config";
import { ApiResponse, ApiTags } from "@nestjs/swagger";
import { FastifyReply } from "fastify";
import { FastifyRequest } from "fastify";
import { ApiTags } from "@nestjs/swagger";
import { FastifyReply, FastifyRequest } from "fastify";
import { IAuthService } from "./interfaces/IAuthService.interface";

@ApiTags(Routes.Auth)
Expand All @@ -34,7 +33,6 @@ export class AuthController {
maxAge: this.configService.getOrThrow<Config["API"]>("API").MaxAge,
path: "/",
});
return;
}

@Get("status")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class JwtStrategy extends PassportStrategy(Strategy, "JWT") {
jwtFromRequest: ExtractJwt.fromExtractors([
(request: FastifyRequest) => {
const data = request?.cookies[Cookies.JWT];
return data ? data : undefined;
return data;
},
]),
ignoreExpiration: false,
Expand Down
2 changes: 0 additions & 2 deletions Packages/Client/test/bot/components/buttons.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { Context } from "@/modules/bot/commands/Commands.context";
import { Buttons } from "@/modules/bot/components/Buttons.component";
import { I18nModule } from "@/modules/bot/i18n/i18n.module";
import { SharedModule } from "@/modules/shared/shared.module";
import { Test, TestingModule } from "@nestjs/testing";
import { ActionRowBuilder, ButtonBuilder } from "discord.js";
import { beforeEach, describe, expect, it } from "vitest";

describe("Buttons", () => {
Expand Down

0 comments on commit bda2670

Please sign in to comment.