Skip to content

Commit

Permalink
fix(notification-service): notification is read set to false as default
Browse files Browse the repository at this point in the history
RFIT-568
  • Loading branch information
mayank-SFIN571 committed Nov 4, 2020
1 parent 4343a3f commit 931de34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 931de34

Please sign in to comment.