av6-core 1.6.0 → 1.6.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/index.js CHANGED
@@ -3431,7 +3431,7 @@ var NotificationService = class {
3431
3431
  const tpl = await this.prisma.template.findUnique({ where: { id: cfg.appNotificationTemplateId } });
3432
3432
  if (!tpl) return;
3433
3433
  let appUrlTpl = null;
3434
- if (cfg.allowAppNotification && cfg.serviceEvent.allowAppNotification && cfg.webNotificationUrlTemplateId) {
3434
+ if (cfg.allowAppNotification && cfg.serviceEvent.allowAppNotification && cfg.appNotificationUrlTemplateId) {
3435
3435
  appUrlTpl = await this.prisma.template.findUnique({ where: { id: cfg.appNotificationUrlTemplateId } });
3436
3436
  }
3437
3437
  const userIds = (args.recipients ?? []).map((x) => Number(x)).filter((n) => Number.isFinite(n) && n > 0);
@@ -3447,7 +3447,7 @@ var NotificationService = class {
3447
3447
  this.logger,
3448
3448
  cfg.serviceEvent.appNotificationApiUrl ?? void 0
3449
3449
  );
3450
- const priority = cfg.priority === "PRIMARY" ? "high" : cfg.priority === "SECONDARY" ? "normal" : "default";
3450
+ const priority = "high";
3451
3451
  const channelId = cfg.channelId ?? "default";
3452
3452
  const messages = [];
3453
3453
  const tokenToUserId = /* @__PURE__ */ new Map();
package/dist/index.mjs CHANGED
@@ -3381,7 +3381,7 @@ var NotificationService = class {
3381
3381
  const tpl = await this.prisma.template.findUnique({ where: { id: cfg.appNotificationTemplateId } });
3382
3382
  if (!tpl) return;
3383
3383
  let appUrlTpl = null;
3384
- if (cfg.allowAppNotification && cfg.serviceEvent.allowAppNotification && cfg.webNotificationUrlTemplateId) {
3384
+ if (cfg.allowAppNotification && cfg.serviceEvent.allowAppNotification && cfg.appNotificationUrlTemplateId) {
3385
3385
  appUrlTpl = await this.prisma.template.findUnique({ where: { id: cfg.appNotificationUrlTemplateId } });
3386
3386
  }
3387
3387
  const userIds = (args.recipients ?? []).map((x) => Number(x)).filter((n) => Number.isFinite(n) && n > 0);
@@ -3397,7 +3397,7 @@ var NotificationService = class {
3397
3397
  this.logger,
3398
3398
  cfg.serviceEvent.appNotificationApiUrl ?? void 0
3399
3399
  );
3400
- const priority = cfg.priority === "PRIMARY" ? "high" : cfg.priority === "SECONDARY" ? "normal" : "default";
3400
+ const priority = "high";
3401
3401
  const channelId = cfg.channelId ?? "default";
3402
3402
  const messages = [];
3403
3403
  const tokenToUserId = /* @__PURE__ */ new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "av6-core",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",