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