@dotbots-boutique/server-sdk 0.5.3 → 0.5.5
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/client.js +6 -2
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -109,8 +109,12 @@ class DotBotsBackend {
|
|
|
109
109
|
return (await response.json());
|
|
110
110
|
}
|
|
111
111
|
async sendNotification(request) {
|
|
112
|
-
const url = 'https://dotnotifications-dotbots-api.apps.dotbots.boutique/
|
|
113
|
-
const body = JSON.stringify(
|
|
112
|
+
const url = 'https://dotnotifications-dotbots-api.apps.dotbots.boutique/api/send';
|
|
113
|
+
const body = JSON.stringify({
|
|
114
|
+
...request,
|
|
115
|
+
applicationExternalId: this.appId,
|
|
116
|
+
appSecret: this.appSecret,
|
|
117
|
+
});
|
|
114
118
|
console.log(JSON.stringify({
|
|
115
119
|
level: 'info',
|
|
116
120
|
message: `[DotBotsBackend] sendNotification → ${url}`,
|
package/package.json
CHANGED