3
0

fix(crm): errors.Wrapf wrong type

This commit is contained in:
Mitja Zivkovic
2019-01-20 21:08:56 +01:00
committed by Denis Arh
parent 14a344c7a1
commit 4eed1fefa1

View File

@@ -102,7 +102,7 @@ func (s *notification) expandUserRefs(usrLookup notificationUserService, recipie
// First, get userID off the table
if userID, _ := strconv.ParseUint(rcpt, 10, 64); userID > 0 {
if user, err := usrLookup.FindByID(userID); err != nil {
return nil, errors.Wrapf(err, "invalid recipient %s", userID)
return nil, errors.Wrapf(err, "invalid recipient %v", userID)
} else {
recipients[r] = user.Email + " " + user.Name
}