@glissandoo/lib 1.61.1 → 1.61.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.
@@ -6,7 +6,7 @@ export default class Notification extends Model<UserNotificationData> {
6
6
  constructor(doc: DocumentModel, lang?: LanguagesTypes);
7
7
  private getTranslationByAction;
8
8
  protected get references(): FirebaseFirestore.DocumentReference<FirebaseFirestore.DocumentData, FirebaseFirestore.DocumentData>[];
9
- get userId(): string[];
9
+ get userId(): string;
10
10
  get photoURL(): string;
11
11
  get meta(): import("./types").MetaNotificationData;
12
12
  get action(): import("../../Notification/types").NotificationActions;
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const lodash_1 = require("lodash");
7
7
  const placeholders_1 = require("../../../helpers/notifications/placeholders");
8
+ const utils_1 = require("../../../helpers/utils");
8
9
  const lang_1 = require("../../../lang");
9
10
  const Model_1 = __importDefault(require("../../Model"));
10
11
  class Notification extends Model_1.default {
@@ -23,7 +24,7 @@ class Notification extends Model_1.default {
23
24
  return this.data.references || [];
24
25
  }
25
26
  get userId() {
26
- return (0, lodash_1.at)(this.ref.path.split('/'), 1) || '';
27
+ return (0, utils_1.at)(this.ref.path.split('/'), 1) || '';
27
28
  }
28
29
  get photoURL() {
29
30
  return this.data.photoURL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.61.1",
3
+ "version": "1.61.2",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",