Skip to content

Commit

Permalink
wip started converting to pure sql
Browse files Browse the repository at this point in the history
  • Loading branch information
emile-bex committed Nov 3, 2023
1 parent 7200ac5 commit cfc9325
Show file tree
Hide file tree
Showing 4 changed files with 189 additions and 308 deletions.
5 changes: 0 additions & 5 deletions src/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
UseGuards,
} from '@nestjs/common';
import { passwordStrength } from 'check-password-strength';
import { Order } from 'sequelize/types/model';
import { validate as uuidValidate } from 'uuid';
import validator from 'validator';
import { encryptPassword, validatePassword } from 'src/auth/auth.utils';
Expand Down Expand Up @@ -77,8 +76,6 @@ export class UsersController {
@Query()
query: FilterParams<MemberFilterKey>
) {
const order: Order = [['firstName', 'ASC']];

if (!role) {
throw new BadRequestException();
}
Expand All @@ -88,7 +85,6 @@ export class UsersController {
...query,
role: role as typeof CandidateUserRoles,
limit,
order,
offset,
search,
});
Expand All @@ -99,7 +95,6 @@ export class UsersController {
...query,
role: role as typeof CoachUserRoles,
limit,
order,
offset,
search,
});
Expand Down
Loading

0 comments on commit cfc9325

Please sign in to comment.