tripstorekrabi-shared 1.12.2 → 1.12.3

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.
Files changed (2) hide show
  1. package/booking.js +3 -3
  2. package/package.json +1 -1
package/booking.js CHANGED
@@ -126,13 +126,13 @@ export function addBookingFromInvoice(firestore, admin, invoice, paymentData, co
126
126
  });
127
127
  }
128
128
 
129
- export function getOperatorSignature(agent, operatorName) {
129
+ export function getOperatorSignature(agent, operatorName, contact) {
130
130
  let signature =
131
131
  '<br><br>Warm regards,<br><br>' + (agent ? agent + ' - ' : "") + operatorName;
132
132
  signature +=
133
- "<br>WhatsApp chat: <a href='https://wa.me/66840679979'>+66 (0) 840 679 979</a>";
133
+ `<br>WhatsApp chat: <a href='https://wa.me/${contact.respondNumber.replace(/\D/g, '')}'>${contact.respondNumber}</a>`;
134
134
  signature +=
135
- "<br>WhatsApp call: <a href='https://wa.me/66967215940'>+66 (0) 967 215 940</a>";
135
+ `<br>WhatsApp call: <a href='https://wa.me/${contact.whatsappNumber.replace(/\D/g, '')}'>${contact.whatsappNumber}</a>`;
136
136
  signature +=
137
137
  "<br>Telegram chat: <a href='https://t.me/tripstorekrabi_bot'>@tripstorekrabi_bot</a>";
138
138
  return signature;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.12.2",
3
+ "version": "1.12.3",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {