@begapp/sdk 1.1.1 → 1.1.2
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 +1 -1
- package/src/notificaciones.js +2 -2
package/package.json
CHANGED
package/src/notificaciones.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getClient } from './client.js';
|
|
1
|
+
import { getClaveSecreta, getClient } from './client.js';
|
|
2
2
|
import { encryptMensaje } from './crypMensaje.js';
|
|
3
3
|
|
|
4
4
|
export async function crearNotificacionBegaApp(id, dataFull) {
|
|
@@ -6,7 +6,7 @@ export async function crearNotificacionBegaApp(id, dataFull) {
|
|
|
6
6
|
throw new Error("crearNotificacion requiere un ID y un objeto data.");
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
const data = encryptMensaje(dataFull);
|
|
9
|
+
const data = encryptMensaje(dataFull, getClaveSecreta());
|
|
10
10
|
|
|
11
11
|
const client = getClient();
|
|
12
12
|
const res = await client.post("/notification/create-notification", {
|