Skip to content

Commit

Permalink
fix(notification-service): notification is read set to false as defau…
Browse files Browse the repository at this point in the history
…lt (#91)

RFIT-568
  • Loading branch information
mayank-SFIN571 authored Nov 4, 2020
1 parent 4343a3f commit 17f1060
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions services/notification-service/src/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ import {
NotificationController,
NotificationUserController,
PubnubNotificationController,
NotificationNotificationUserController,
NotificationUserNotificationController,
} from './controllers';
import {NotifServiceBindings} from './keys';
import {Notification, NotificationAccess, NotificationUser} from './models';
Expand Down Expand Up @@ -114,6 +116,8 @@ export class NotificationServiceComponent implements Component {
NotificationController,
NotificationUserController,
PubnubNotificationController,
NotificationNotificationUserController,
NotificationUserNotificationController,
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export class NotificationUserController {

private _createFilterBuilder(
currentUser: IAuthUserWithPermissions,
filter?: Filter<NotificationUser>,
filter: Filter<NotificationUser> = {},
) {
const filterBuilder = new FilterBuilder(filter);
if (filter) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ export class NotificationUser extends BaseEntity {

@property({
type: 'boolean',
required: true,
default: false,
name: 'is_read',
})
isRead: boolean;
isRead?: boolean;

constructor(data?: Partial<NotificationUser>) {
super(data);
Expand Down

0 comments on commit 17f1060

Please sign in to comment.