@sinch/functions-runtime 0.3.0 → 0.3.1
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/dist/bin/sinch-runtime.js +4 -4
- package/dist/bin/sinch-runtime.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1635,8 +1635,8 @@ async function configureConversationWebhooks(tunnelUrl, config) {
|
|
|
1635
1635
|
try {
|
|
1636
1636
|
const conversationAppId = process.env.CONVERSATION_APP_ID;
|
|
1637
1637
|
const projectId = process.env.PROJECT_ID;
|
|
1638
|
-
const keyId = process.env.
|
|
1639
|
-
const keySecret = process.env.
|
|
1638
|
+
const keyId = process.env.PROJECT_ID_API_KEY;
|
|
1639
|
+
const keySecret = process.env.PROJECT_ID_API_SECRET;
|
|
1640
1640
|
if (!conversationAppId || !projectId || !keyId || !keySecret) {
|
|
1641
1641
|
console.log("\u{1F4A1} Conversation API not fully configured - skipping webhook setup");
|
|
1642
1642
|
return;
|
|
@@ -1680,8 +1680,8 @@ async function cleanupConversationWebhook(config) {
|
|
|
1680
1680
|
try {
|
|
1681
1681
|
const conversationAppId = process.env.CONVERSATION_APP_ID;
|
|
1682
1682
|
const projectId = process.env.PROJECT_ID;
|
|
1683
|
-
const keyId = process.env.
|
|
1684
|
-
const keySecret = process.env.
|
|
1683
|
+
const keyId = process.env.PROJECT_ID_API_KEY;
|
|
1684
|
+
const keySecret = process.env.PROJECT_ID_API_SECRET;
|
|
1685
1685
|
if (!conversationAppId || !projectId || !keyId || !keySecret) return;
|
|
1686
1686
|
const sinchClient = new SinchClient2({
|
|
1687
1687
|
projectId,
|