@glissandoo/lib 1.53.1 → 1.53.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.
@@ -63,7 +63,7 @@ export default class Evento extends EventoPromoter<EventData> {
63
63
  get templateId(): string | null;
64
64
  get repeat(): import("./types").EventRepeatType | null;
65
65
  isPlayer: (userId: string) => boolean;
66
- getPlayer: (userId: string) => EventoPlayerBasic | null;
66
+ getPlayer: (userId: string) => EventoPlayerBasic;
67
67
  get responseDeadline(): {
68
68
  option: EventResponseDeadlineOptions;
69
69
  customAt: import("../../types/firestore").Timestamp | null;
@@ -18,7 +18,9 @@ class Evento extends promoter_1.default {
18
18
  return this.playerIds.includes(userId);
19
19
  };
20
20
  this.getPlayer = (userId) => {
21
- return userId in this.players ? this.players[userId] : null;
21
+ return userId in this.players
22
+ ? this.players[userId]
23
+ : new Basic_1.default(this.id, null, this.lang);
22
24
  };
23
25
  }
24
26
  get maxAttendance() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.53.1",
3
+ "version": "1.53.2",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",