Showing
6 changed files
with
14 additions
and
6 deletions
| ... | ... | @@ -7,7 +7,7 @@ |
| 7 | 7 | "license": "UNLICENSED", |
| 8 | 8 | "scripts": { |
| 9 | 9 | "build": "nest build", |
| 10 | - "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", | |
| 10 | + "format": "prettier --write \"src/**/*.ts\"", | |
| 11 | 11 | "start": "nest start", |
| 12 | 12 | "start:dev": "nest start --watch", |
| 13 | 13 | "start:debug": "nest start --debug --watch", | ... | ... |
| 1 | -import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common'; | |
| 1 | +import { | |
| 2 | + Controller, | |
| 3 | + Get, | |
| 4 | + Post, | |
| 5 | + Body, | |
| 6 | + Patch, | |
| 7 | + Param, | |
| 8 | + Delete, | |
| 9 | +} from '@nestjs/common'; | |
| 2 | 10 | import { AuthService } from './auth.service'; |
| 3 | 11 | import { CreateAuthDto } from './dto/create-auth.dto'; |
| 4 | 12 | import { UpdateAuthDto } from './dto/update-auth.dto'; | ... | ... |
| ... | ... | @@ -13,7 +13,7 @@ import { UpdateUserDto } from './dto/update-user.dto'; |
| 13 | 13 | |
| 14 | 14 | @Controller('users') |
| 15 | 15 | export class UsersController { |
| 16 | - constructor(private readonly usersService: UsersService) { } | |
| 16 | + constructor(private readonly usersService: UsersService) {} | |
| 17 | 17 | |
| 18 | 18 | @Post() |
| 19 | 19 | create(@Body() createUserDto: CreateUserDto) { | ... | ... |
| ... | ... | @@ -5,7 +5,7 @@ import { PrismaService } from 'src/config/prisma.service'; |
| 5 | 5 | |
| 6 | 6 | @Injectable() |
| 7 | 7 | export class UsersService { |
| 8 | - constructor(private prisma: PrismaService) { } | |
| 8 | + constructor(private prisma: PrismaService) {} | |
| 9 | 9 | create(createUserDto: CreateUserDto) { |
| 10 | 10 | return 'This action adds a new user'; |
| 11 | 11 | } | ... | ... |
Please
register
or
login
to post a comment