@@ -4495,6 +4495,7 @@ func (s *MethodTestSuite) TestNotifications() {
4495
4495
Title : "test title" ,
4496
4496
Content : "test content notification" ,
4497
4497
Icon : "test icon" ,
4498
+ Actions : json .RawMessage ("{}" ),
4498
4499
})
4499
4500
4500
4501
check .Args (u .ID ).Asserts (rbac .ResourceInboxNotification .WithID (notifID ).WithOwner (u .ID .String ()), policy .ActionRead ).Returns ([]database.InboxNotification {notif })
@@ -4517,6 +4518,7 @@ func (s *MethodTestSuite) TestNotifications() {
4517
4518
Title : "test title" ,
4518
4519
Content : "test content notification" ,
4519
4520
Icon : "test icon" ,
4521
+ Actions : json .RawMessage ("{}" ),
4520
4522
})
4521
4523
4522
4524
check .Args (u .ID ).Asserts (rbac .ResourceInboxNotification .WithID (notifID ).WithOwner (u .ID .String ()), policy .ActionRead ).Returns ([]database.InboxNotification {notif })
@@ -4542,6 +4544,7 @@ func (s *MethodTestSuite) TestNotifications() {
4542
4544
Title : "test title" ,
4543
4545
Content : "test content notification" ,
4544
4546
Icon : "test icon" ,
4547
+ Actions : json .RawMessage ("{}" ),
4545
4548
})
4546
4549
4547
4550
check .Args (database.FetchInboxNotificationsByUserIDFilteredByTemplatesAndTargetsParams {
@@ -4571,6 +4574,7 @@ func (s *MethodTestSuite) TestNotifications() {
4571
4574
Title : "test title" ,
4572
4575
Content : "test content notification" ,
4573
4576
Icon : "test icon" ,
4577
+ Actions : json .RawMessage ("{}" ),
4574
4578
})
4575
4579
4576
4580
check .Args (database.FetchUnreadInboxNotificationsByUserIDFilteredByTemplatesAndTargetsParams {
@@ -4600,6 +4604,7 @@ func (s *MethodTestSuite) TestNotifications() {
4600
4604
Title : "test title" ,
4601
4605
Content : "test content notification" ,
4602
4606
Icon : "test icon" ,
4607
+ Actions : json .RawMessage ("{}" ),
4603
4608
})
4604
4609
4605
4610
check .Args (notifID ).Asserts (rbac .ResourceInboxNotification .WithID (notifID ).WithOwner (u .ID .String ()), policy .ActionRead ).Returns (notif )
@@ -4631,6 +4636,7 @@ func (s *MethodTestSuite) TestNotifications() {
4631
4636
Title : "test title" ,
4632
4637
Content : "test content notification" ,
4633
4638
Icon : "test icon" ,
4639
+ Actions : json .RawMessage ("{}" ),
4634
4640
})
4635
4641
4636
4642
notif .ReadAt = sql.NullTime {Time : readAt , Valid : true }
0 commit comments