fix(ticket_service): update user retrieval to use UserRepository
This commit is contained in:
@@ -1261,7 +1261,7 @@ func (s *ticketService) AddInternalNote(req request.InternalNoteRequest, operato
|
|||||||
if userID <= 0 || userID == operator.UserID {
|
if userID <= 0 || userID == operator.UserID {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if user := UserService.Get(userID); user != nil {
|
if user := repositories.UserRepository.Get(ctx.Tx, userID); user != nil {
|
||||||
name := user.Nickname
|
name := user.Nickname
|
||||||
if name == "" {
|
if name == "" {
|
||||||
name = user.Username
|
name = user.Username
|
||||||
|
|||||||
Reference in New Issue
Block a user