fix(lint): clean up type definitions and missing imports
Deploy Canina / deploy (push) Failing after 30m46s
Deploy Canina / deploy (push) Failing after 30m46s
This commit is contained in:
1 parent
9c8286c63f
commit
2de442dbae
9 files changed
+147
-62
No files matched your search
@@ -68,7 +68,9 @@ export class SmsService {
|
||||
);
|
||||
|
||||
req.on('error', (err) => {
|
||||
this.logger.error(`[SMS Exception] MeliPayamak HTTP Error: ${err.message}`);
|
||||
this.logger.error(
|
||||
`[SMS Exception] MeliPayamak HTTP Error: ${err.message}`,
|
||||
);
|
||||
resolve(false);
|
||||
});
|
||||
|
||||
@@ -92,7 +94,11 @@ export class SmsService {
|
||||
/**
|
||||
* Send Order Confirmation SMS
|
||||
*/
|
||||
async sendOrderConfirmation(phone: string, orderNumber: string, amount: string): Promise<boolean> {
|
||||
async sendOrderConfirmation(
|
||||
phone: string,
|
||||
orderNumber: string,
|
||||
amount: string,
|
||||
): Promise<boolean> {
|
||||
const bodyId = parseInt(process.env.MELIPAYAMAK_ORDER_BODY_ID || '0', 10);
|
||||
return this.sendPatternSms({
|
||||
to: phone,
|
||||
@@ -104,8 +110,15 @@ export class SmsService {
|
||||
/**
|
||||
* Send Shipping Status SMS with Tracking Code
|
||||
*/
|
||||
async sendShippingNotification(phone: string, orderNumber: string, trackingCode: string): Promise<boolean> {
|
||||
const bodyId = parseInt(process.env.MELIPAYAMAK_SHIPPING_BODY_ID || '0', 10);
|
||||
async sendShippingNotification(
|
||||
phone: string,
|
||||
orderNumber: string,
|
||||
trackingCode: string,
|
||||
): Promise<boolean> {
|
||||
const bodyId = parseInt(
|
||||
process.env.MELIPAYAMAK_SHIPPING_BODY_ID || '0',
|
||||
10,
|
||||
);
|
||||
return this.sendPatternSms({
|
||||
to: phone,
|
||||
bodyId,
|
||||
@@ -116,8 +129,15 @@ export class SmsService {
|
||||
/**
|
||||
* Send Pet Care Vaccination / Deworming Reminder SMS
|
||||
*/
|
||||
async sendPetCareReminder(phone: string, petName: string, reminderType: string): Promise<boolean> {
|
||||
const bodyId = parseInt(process.env.MELIPAYAMAK_PET_CARE_BODY_ID || '0', 10);
|
||||
async sendPetCareReminder(
|
||||
phone: string,
|
||||
petName: string,
|
||||
reminderType: string,
|
||||
): Promise<boolean> {
|
||||
const bodyId = parseInt(
|
||||
process.env.MELIPAYAMAK_PET_CARE_BODY_ID || '0',
|
||||
10,
|
||||
);
|
||||
return this.sendPatternSms({
|
||||
to: phone,
|
||||
bodyId,
|
||||
|
||||
Reference in new issue
Block a user