@runnerpro/backend 1.0.7 → 1.0.8

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.
@@ -57,21 +57,18 @@ function notificationWEB(firebaseMessaging, msg, token) {
57
57
  return __awaiter(this, void 0, void 0, function* () {
58
58
  if (!msg.title)
59
59
  msg.title = '';
60
- console.log(msg);
61
- // firebaseMessaging
62
- // .send({
63
- // token,
64
- // data: msg,
65
- // })
66
- // .catch((error: any) => {
67
- // if (
68
- // error.errorInfo.code === 'messaging/registration-token-not-registered'
69
- // ) {
70
- // // query(
71
- // // 'DELETE FROM [PUSH MANAGER] WHERE [ID CLIENTE] = ? AND [SUBSCRIPTION] = ?',
72
- // // [idCliente, subscription]
73
- // // );
74
- // }
75
- // });
60
+ firebaseMessaging
61
+ .send({
62
+ token,
63
+ data: msg,
64
+ })
65
+ .catch((error) => {
66
+ if (error.errorInfo.code === 'messaging/registration-token-not-registered') {
67
+ // query(
68
+ // 'DELETE FROM [PUSH MANAGER] WHERE [ID CLIENTE] = ? AND [SUBSCRIPTION] = ?',
69
+ // [idCliente, subscription]
70
+ // );
71
+ }
72
+ });
76
73
  });
77
74
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sendNotification/index.ts"],"names":[],"mappings":"AAGA,UAAU,YAAY;IACpB,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,QAAA,MAAM,gBAAgB,wDAMnB,YAAY,kBA2Bd,CAAC;AAsDF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sendNotification/index.ts"],"names":[],"mappings":"AAGA,UAAU,YAAY;IACpB,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,QAAA,MAAM,gBAAgB,wDAMnB,YAAY,kBA2Bd,CAAC;AAqDF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"