Skip to content

Commit

Permalink
fix: Bcrypt not properly imported (#102)
Browse files Browse the repository at this point in the history
* fix: Issue introduced by Benecict & me

* Set Environment explicitly

Signed-off-by: Henry Brink <[email protected]>

* fix: Bcrypt import still not properly working

Signed-off-by: Henry Brink <[email protected]>

* Remove environment

Signed-off-by: Henry Brink <[email protected]>

---------

Signed-off-by: Henry Brink <[email protected]>
  • Loading branch information
henrybrink authored Apr 21, 2024
1 parent c99332c commit df5d2d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ on:
jobs:
verify:
runs-on: ubuntu-latest
environment: Tests


steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -26,7 +25,11 @@ jobs:
run: cd backend && npm install

- name: Reset the database (for e2e tests)
env:
DATABASE_URL: file:./database.dev.sqlite
run: cd backend && npm run db:reset

- name: Run verify
run: cd backend && npm run verify
env:
DATABASE_URL: 'file:./database.dev.sqlite'
run: cd backend && npm run verify
2 changes: 1 addition & 1 deletion backend/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@nestjs/common';
import { User } from '@prisma/client';
import { compare } from 'bcrypt';
import * as bcrypt from 'bcrypt';
import { UserRepository } from '../db/repositories/user.repository';

@Injectable()
Expand Down

0 comments on commit df5d2d5

Please sign in to comment.