Skip to content

Commit

Permalink
feat(js): improved notification class fields
Browse files Browse the repository at this point in the history
  • Loading branch information
LetItRock committed Jun 7, 2024
1 parent 75ed172 commit 9448d67
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/js/src/feeds/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ import { markActionAs, markNotificationAs, remove } from './helpers';
type NotificationLike = Pick<
Notification,
| '_id'
| '_subscriberId'
| '_feedId'
| 'createdAt'
| 'updatedAt'
| 'actor'
| 'subscriber'
| 'transactionId'
| 'templateIdentifier'
| 'content'
| 'read'
| 'seen'
Expand All @@ -38,14 +36,12 @@ export class Notification implements Pick<NovuEventEmitter, 'on' | 'off'> {
#apiService: ApiService;

_id: string;
_subscriberId: string;
_feedId?: string | null;
createdAt: string;
updatedAt: string;
actor?: Actor;
subscriber?: Subscriber;
transactionId: string;
templateIdentifier: string;
content: string;
read: boolean;
seen: boolean;
Expand All @@ -59,14 +55,12 @@ export class Notification implements Pick<NovuEventEmitter, 'on' | 'off'> {
this.#apiService = ApiServiceSingleton.getInstance();

this._id = notification._id;
this._subscriberId = notification._subscriberId;
this._feedId = notification._feedId;
this.createdAt = notification.createdAt;
this.updatedAt = notification.updatedAt;
this.actor = notification.actor;
this.subscriber = notification.subscriber;
this.transactionId = notification.transactionId;
this.templateIdentifier = notification.templateIdentifier;
this.content = notification.content;
this.read = notification.read;
this.seen = notification.seen;
Expand Down

0 comments on commit 9448d67

Please sign in to comment.