fix: issues in organization build.

This commit is contained in:
Ahmed Bouhuolia
2020-09-05 15:12:38 +02:00
parent 481ca8aa8b
commit 79b7a02f85
10 changed files with 65 additions and 38 deletions

View File

@@ -4,7 +4,6 @@ import Mustache from 'mustache';
import path from 'path';
import { ISystemUser } from '@/interfaces';
import config from '@/../config/config';
import { ISystemUser } from 'src/interfaces';
@Service()
export default class AuthenticationMailMesssages {

View File

@@ -1,13 +1,19 @@
import { Service } from "typedi";
import { Service, Inject } from "typedi";
import { ISystemUser, ITenant } from "@/interfaces";
@Service()
export default class AuthenticationSMSMessages {
@Inject('SMSClient')
smsClient: any;
sendWelcomeMessage() {
const message: string = `Hi ${firstName}, Welcome to Bigcapital, You've joined the new workspace,
if you need any help please don't hesitate to contact us.`
/**
* Sends welcome sms message.
* @param {ITenant} tenant
* @param {ISystemUser} user
*/
sendWelcomeMessage(tenant: ITenant, user: ISystemUser) {
const message: string = `Hi ${user.firstName}, Welcome to Bigcapital, You've joined the new workspace, if you need any help please don't hesitate to contact us.`
return this.smsClient.sendMessage(user.phoneNumber, message);
}
}