Skip to content

Commit

Permalink
added workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
samr7821 committed Dec 4, 2023
1 parent 83ebe14 commit e502ab2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI Build

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '18'

- name: Install dependencies
run: npm install

- name: Run build
run: npm run build
1 change: 1 addition & 0 deletions src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { User as UserDecorator } from "../decorator/user.decorator";
path: "auth",
version: "1",
})

@UseInterceptors(MongooseClassSerializerInterceptor(User))
export class AuthController {
constructor(
Expand Down
3 changes: 1 addition & 2 deletions src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export class AuthService {
constructor(
private userService: UsersService,
private jwtService: JwtService
) {
}
){}

async validateUser(email: string, password: string) {
const user = await this.userService.findByEmail(email);
Expand Down

0 comments on commit e502ab2

Please sign in to comment.