Skip to content

Commit

Permalink
Merge pull request #948 from gobitfly/BEDS-469/dev-mock-data
Browse files Browse the repository at this point in the history
(BEDS-469) returning dummy data for development
  • Loading branch information
remoterami authored Oct 14, 2024
2 parents a6c4bb2 + 715ef1a commit c5fd9bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/pkg/api/data_access/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ func (d *DataAccessService) GetNotificationOverview(ctx context.Context, userId
}

func (d *DataAccessService) GetDashboardNotifications(ctx context.Context, userId uint64, chainIds []uint64, cursor string, colSort t.Sort[enums.NotificationDashboardsColumn], search string, limit uint64) ([]t.NotificationDashboardsTableRow, *t.Paging, error) {
// dev hack; TODO remove
if userId == 127504 {
return d.dummy.GetDashboardNotifications(ctx, userId, chainIds, cursor, colSort, search, limit)
}
response := []t.NotificationDashboardsTableRow{}
var err error

Expand Down

0 comments on commit c5fd9bc

Please sign in to comment.