mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2026-05-03 16:07:50 +02:00
+5
-6
@@ -2,7 +2,6 @@ package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
|
||||
"github.com/arangodb/go-driver"
|
||||
|
||||
@@ -34,10 +33,10 @@ func (s *Service) publishRequest(ctx context.Context, err error, function string
|
||||
userID = user.ID
|
||||
}
|
||||
|
||||
go func() {
|
||||
if err := s.bus.PublishRequest(userID, function, ids); err != nil {
|
||||
log.Println(err)
|
||||
}
|
||||
}()
|
||||
s.bus.RequestChannel.Publish(&bus.RequestMsg{
|
||||
User: userID,
|
||||
Function: function,
|
||||
IDs: ids,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user