backend-manager 3.2.25 → 3.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "3.2.25",
3
+ "version": "3.2.26",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -291,12 +291,12 @@ Module.prototype.addToSendGridList = function (user) {
291
291
  },
292
292
  },
293
293
  })
294
- .then(function (res) {
295
- assistant.log('Sucessfully added user to SendGrid list.')
294
+ .then((r) => {
295
+ assistant.log('addToSendGridList(): Success', r)
296
296
  return resolve(res);
297
297
  })
298
- .catch(function (e) {
299
- assistant.log('Failed to add user to SendGrid list.', e)
298
+ .catch((e) => {
299
+ assistant.error('addToSendGridList(): Failed', e)
300
300
  return resolve(e);
301
301
  })
302
302
 
@@ -340,6 +340,7 @@ Module.prototype.sendRateEmail = function (user) {
340
340
  subject: `Your ${Manager.config.brand.name} account has been deleted`,
341
341
  template: 'd-b7f8da3c98ad49a2ad1e187f3a67b546',
342
342
  group: 25927,
343
+ copy: true,
343
344
  data: {
344
345
  email: {
345
346
  preview: `You have signed up for too many accounts at ${Manager.config.brand.name}! Your account has been deleted.`,
@@ -361,11 +362,11 @@ Module.prototype.sendRateEmail = function (user) {
361
362
  },
362
363
  },
363
364
  })
364
- .then(async (json) => {
365
+ .then((json) => {
365
366
  assistant.log('sendEmail(): Success', json)
366
367
  return resolve(json);
367
368
  })
368
- .catch(e => {
369
+ .catch((e) => {
369
370
  assistant.error('sendEmail(): Failed', e)
370
371
  return resolve(e);
371
372
  });
@@ -424,11 +425,11 @@ Module.prototype.sendWelcomeEmail = function (user) {
424
425
  },
425
426
  },
426
427
  })
427
- .then(async (json) => {
428
+ .then((json) => {
428
429
  assistant.log('sendEmail(): Success', json)
429
430
  return resolve(json);
430
431
  })
431
- .catch(e => {
432
+ .catch((e) => {
432
433
  assistant.error('sendEmail(): Failed', e)
433
434
  return resolve(e);
434
435
  });
@@ -487,11 +488,11 @@ Module.prototype.sendCheckupEmail = function (user) {
487
488
  },
488
489
  },
489
490
  })
490
- .then(async (json) => {
491
+ .then((json) => {
491
492
  assistant.log('sendEmail(): Success', json)
492
493
  return resolve(json);
493
494
  })
494
- .catch(e => {
495
+ .catch((e) => {
495
496
  assistant.error('sendEmail(): Failed', e)
496
497
  return resolve(e);
497
498
  });
@@ -524,11 +525,11 @@ Module.prototype.sendFeedbackEmail = function (user) {
524
525
  sendAt: moment().add(14, 'days').unix(),
525
526
  },
526
527
  })
527
- .then(async (json) => {
528
+ .then((json) => {
528
529
  assistant.log('sendEmail(): Success', json)
529
530
  return resolve(json);
530
531
  })
531
- .catch(e => {
532
+ .catch((e) => {
532
533
  assistant.error('sendEmail(): Failed', e)
533
534
  return resolve(e);
534
535
  });