logs fix
This commit is contained in:
@@ -53,9 +53,9 @@ func CreatePerson(person model.PersonalInformationApi, header http.Header, c ech
|
||||
return pi, nil
|
||||
}
|
||||
|
||||
func GetPersons(ids []uuid.UUID, header http.Header, c echo.Context) (map[uuid.UUID]*model.PersonalInformationApi, error) {
|
||||
func GetPersons(ids []uuid.UUID, header http.Header, c echo.Context) (map[uuid.UUID]model.PersonalInformationApi, error) {
|
||||
var persons []model.PersonalInformationApi
|
||||
personsMap := make(map[uuid.UUID]*model.PersonalInformationApi)
|
||||
personsMap := make(map[uuid.UUID]model.PersonalInformationApi)
|
||||
|
||||
data, err, req := api.PostRequest(
|
||||
config.Env.MSHosts.PersonsHost+"/persons/batch/",
|
||||
@@ -75,7 +75,7 @@ func GetPersons(ids []uuid.UUID, header http.Header, c echo.Context) (map[uuid.U
|
||||
}
|
||||
|
||||
for _, person := range persons {
|
||||
personsMap[person.ID] = &person
|
||||
personsMap[person.ID] = person
|
||||
}
|
||||
|
||||
return personsMap, nil
|
||||
|
||||
Reference in New Issue
Block a user