mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: issue in mail sender.
This commit is contained in:
@@ -12,7 +12,8 @@ export default class EasySMSClient implements SMSClientInterface {
|
||||
*/
|
||||
send(to: string, message: string) {
|
||||
const API_KEY = config.easySMSGateway.api_key;
|
||||
const params = `action=send-sms&api_key=${API_KEY}=&to=${to}&sms=${message}&unicode=1`;
|
||||
const parsedTo = to.indexOf('218') === 0 ? to.replace('218', '') : to;
|
||||
const params = `action=send-sms&api_key=${API_KEY}=&to=${parsedTo}&sms=${message}&unicode=1`;
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
axios.get(`https://easysms.devs.ly/sms/api?${params}`)
|
||||
|
||||
@@ -8,7 +8,7 @@ export default class SMSAPI {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Sends the message to the target via the client.
|
||||
* @param {string} to
|
||||
* @param {string} message
|
||||
* @param {array} extraParams
|
||||
|
||||
Reference in New Issue
Block a user