🐛 Trying to fix panic

This commit is contained in:
2024-10-18 23:10:33 +08:00
parent e83e92b054
commit e412d5e742
2 changed files with 5 additions and 5 deletions

View File

@ -68,7 +68,7 @@ func (v *Server) NotifyUserBatch(_ context.Context, in *proto.NotifyUserBatchReq
var checklist = make(map[uint]bool, len(users))
var notifications []models.Notification
for _, user := range users {
if checklist[user.ID] {
if _, ok := checklist[user.ID]; ok {
continue
}