Skip to content

Commit

Permalink
Update auth.service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
theChosenDevop authored Mar 1, 2025
1 parent e321f7a commit 15ea115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default class AuthenticationService {
if (!isMatch) {
throw new CustomHttpException(SYS_MSG.INVALID_CREDENTIALS, HttpStatus.UNAUTHORIZED);
}
const userOrganisations = await this.organisationService.getAllUserOrganisations(user.id);
const userOrganisations = await this.organisationService.getAllUserOrganisations(user.id, 1, 10);
const isSuperAdmin = userOrganisations.some(org => org.user_role === 'super-admin');

let refresh_token = this.jwtService.sign({ sub: user.id }, { expiresIn: '7d' });
Expand Down

0 comments on commit 15ea115

Please sign in to comment.