A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
update inbox
aichy1260b7606ea2226
diff --git a/internal/service/notification/notification_service.go b/internal/service/notification/notification_service.goindex 3f23be3e..6402f395 100644--- a/internal/service/notification/notification_service.go+++ b/internal/service/notification/notification_service.go@@ -123,9 +123,12 @@ func (ns *NotificationService) GetNotificationPage(ctx context.Context, searchCoif !ok {return pager.NewPageModel(0, resp), nil}- searchInboxType, ok := schema.NotificationInboxType[searchCond.InboxTypeStr]- if !ok {- return pager.NewPageModel(0, resp), nil+ searchInboxType := schema.NotificationInboxTypeAll+ if searchType == schema.NotificationTypeInbox {+ searchInboxType, ok = schema.NotificationInboxType[searchCond.InboxTypeStr]+ if !ok {+ return pager.NewPageModel(0, resp), nil+ }}searchCond.Type = searchTypesearchCond.InboxType = searchInboxType