Skip to content

Commit

Permalink
fix: fixed conflict from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaybee committed Feb 28, 2025
1 parent 0458f8a commit 3d149c8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/modules/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,8 @@ export default class AuthenticationService {

const newOrganisation = await this.organisationService.create(createOrganisationPayload);

const userOrganisations = await this.organisationService.getAllUserOrganisations(user.id);

const userOrganisations = await this.organisationService.getAllUserOrganisations(user.id, 1, 10);
const isSuperAdmin = userOrganisations.map(instance => instance.user_role).includes('super-admin');
const userOranisations = await this.organisationService.getAllUserOrganisations(user.id, 1, 10);


const token = (await this.otpService.createOtp(user.id, manager)).token;

Expand Down

0 comments on commit 3d149c8

Please sign in to comment.