Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerry97 committed Jan 3, 2024
1 parent 611cb1e commit 516a36a
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 33 deletions.
4 changes: 1 addition & 3 deletions src/interfaces/createProduct.interface.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { IsAlpha, isEmail, IsNotEmpty, IsNumber, IsString, isString, Min, MinLength } from "class-validator";
import { ProductPricesInterface } from "./productPrices.interface";
import { StoreInterface } from "./store.interface";
import { IsNotEmpty, IsNumber, IsString, isString, Min, MinLength } from "class-validator";

export class CreateProductInterface {

Expand Down
3 changes: 1 addition & 2 deletions src/models/product/product.entity.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
Entity,
Column,
OneToMany,
Column,
ManyToOne,
PrimaryGeneratedColumn,
JoinColumn,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/app/app.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Body, Controller, Get, Post } from '@nestjs/common';
import { Controller, Get } from '@nestjs/common';
import { CreateProductInterface } from 'src/interfaces/createProduct.interface';
import { AppService } from './app.service';

Expand Down
6 changes: 2 additions & 4 deletions src/modules/app/logger.middleware.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Injectable, NestMiddleware, RequestMethod } from '@nestjs/common';
import { Request, Response, NextFunction } from 'express';
import { RouteInfo } from '@nestjs/common/interfaces';
import { request } from 'http';
import { Injectable, NestMiddleware } from '@nestjs/common';
import { Request, Response, NextFunction } from 'express';
@Injectable()
export class LoggerMiddleware implements NestMiddleware {
use(req: Request, res: Response, next: NextFunction) {
Expand Down
3 changes: 1 addition & 2 deletions src/modules/auth/module/auth.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { PassportModule } from '@nestjs/passport';
import { FirebaseAuthStrategy } from '../strategies/firebase-auth.strategy';
import { FirebaseService } from '../services/firebase.service';
import { FirebaseAuthGuard } from '../guards/firebase-auth.guard';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AllowedAdminGuard } from '../guards/allowed-admin.guard';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from 'src/models/user/user.entity';
import { UsersModule } from 'src/modules/users/module/users.module';
import { UsersService } from 'src/modules/users/service/users.service';
Expand Down
3 changes: 1 addition & 2 deletions src/modules/auth/strategies/firebase-auth.strategy.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { PassportStrategy } from '@nestjs/passport';
import {
Inject,
Injectable,
NotFoundException,
Injectable,
UnauthorizedException,
} from '@nestjs/common';
import { ExtractJwt, Strategy } from 'passport-firebase-jwt';
Expand Down
8 changes: 2 additions & 6 deletions src/modules/products/controller/products.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ import {
Param,
UseGuards,
Req,
} from '@nestjs/common';
import { resolve } from 'path';
import { Store } from 'src/models/store/store.entity';
import { StoreInterface } from 'src/interfaces/store.interface';
} from '@nestjs/common';
import { ProductsService } from '../service/products.service';
import { Product } from 'src/models/product/product.entity';
import { ProductInterface } from 'src/interfaces/product.interface';
import { Product } from 'src/models/product/product.entity';
import { FirebaseAuthGuard } from 'src/modules/auth/guards/firebase-auth.guard';
import { CreateProductInterface } from 'src/interfaces/createProduct.interface';

Expand Down
3 changes: 1 addition & 2 deletions src/modules/products/service/products.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { ProductInterface } from 'src/interfaces/product.interface';
import { InjectRepository } from '@nestjs/typeorm';
import { Product } from 'src/models/product/product.entity';
import { Store } from 'src/models/store/store.entity';
import { Repository } from 'typeorm';
Expand Down
6 changes: 2 additions & 4 deletions src/modules/store/controller/stores.controller.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import {
Body,
Controller,
Get,
Param,
Get,
Post,
Req,
UseGuards,
} from '@nestjs/common';
import { resolve } from 'path';
} from '@nestjs/common';
import { StoresService } from '../service/stores.service';
import { Store } from 'src/models/store/store.entity';
import { StoreInterface } from 'src/interfaces/store.interface';
Expand Down
3 changes: 1 addition & 2 deletions src/modules/users/controller/users.controller.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Body, Controller, Get, Post } from '@nestjs/common';
import { UsersService } from '../service/users.service';
import { User } from 'src/models/user/user.entity';
import { Repository } from 'typeorm';
import { User } from 'src/models/user/user.entity';
import { UserInterface } from 'src/interfaces/user.interface';

@Controller('users')
Expand Down
5 changes: 2 additions & 3 deletions src/modules/users/module/users.module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Module } from '@nestjs/common';
import { InjectRepository, TypeOrmModule } from '@nestjs/typeorm';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UsersService } from '../service/users.service';
import { User } from 'src/models/user/user.entity';
import { UsersController } from '../controller/users.controller';
import { Repository } from 'typeorm';
import { UsersController } from '../controller/users.controller';
import { Store } from 'src/models/store/store.entity';
@Module({
imports: [TypeOrmModule.forFeature([User,Store])],
Expand Down
3 changes: 1 addition & 2 deletions src/modules/users/service/users.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Injectable, HttpException, HttpStatus } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { UserInterface } from 'src/interfaces/user.interface';
import { InjectRepository } from '@nestjs/typeorm';
import { User } from 'src/models/user/user.entity';
import { Repository } from 'typeorm';

Expand Down

0 comments on commit 516a36a

Please sign in to comment.