Skip to content

Commit

Permalink
Merge pull request #32 from AplinkosMinisterija/invite-tenant-with-ow…
Browse files Browse the repository at this point in the history
…ner-role-fix

fix
  • Loading branch information
LWangllix authored Feb 21, 2024
2 parents 4eb4fc5 + ce6dfb6 commit 9af0692
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions services/tenants.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
import moleculer, { Context } from 'moleculer';
import { Action, Service } from 'moleculer-decorators';

import { UserAuthMeta } from './api.service';
import DbConnection from '../mixins/database.mixin';
import {
COMMON_FIELDS,
BaseModelInterface,
COMMON_DEFAULT_SCOPES,
COMMON_FIELDS,
COMMON_SCOPES,
FieldHookCallback,
BaseModelInterface,
EndpointType,
throwUnauthorizedError,
FieldHookCallback,
throwNotFoundError,
throwUnauthorizedError,
} from '../types';
import { UserAuthMeta } from './api.service';
import { TenantUser, TenantUserRole } from './tenantUsers.service';
import { User, UserType } from './users.service';

Expand Down Expand Up @@ -295,7 +295,7 @@ export default class TenantsService extends moleculer.Service {
'tenantUsers.createRelationshipsIfNeeded',
{
companyName,
authGroup,
authGroup: { ...authGroup, role: authUser?.role },
companyEmail,
companyPhone,
userId: user.id,
Expand Down

0 comments on commit 9af0692

Please sign in to comment.