mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-01-23 02:40:23 +08:00
Merge branch 'v2.0' of https://github.com/bufanyun/hotgo into v2.0
This commit is contained in:
commit
47ecaf4c0f
@ -245,7 +245,7 @@ func (s *sAdminNotice) PullMessages(ctx context.Context, in *adminin.PullMessage
|
||||
res.NoticeUnreadCountModel = unread
|
||||
}
|
||||
|
||||
if err = s.Model(ctx).WhereIn("id", messageIds).Limit(in.Limit).Order("id desc").Scan(&res.List); err != nil {
|
||||
if err = s.Model(ctx, &handler.Option{FilterAuth: false}).WhereIn("id", messageIds).Limit(in.Limit).Order("id desc").Scan(&res.List); err != nil {
|
||||
err = gerror.Wrap(err, consts.ErrorORM)
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user