This commit is contained in:
@@ -43,14 +43,14 @@ func (sportList *SportDTOList) CompareIds(target *SportDTOList) (missing, obsole
|
||||
// iterate source IDs
|
||||
for id := range sources {
|
||||
if _, ok := targets[id]; ok {
|
||||
slog.Info(fmt.Sprintf("ID %s found in both lists", id))
|
||||
slog.Debug(fmt.Sprintf("ID %s found in both lists", id))
|
||||
} else {
|
||||
missing = append(missing, id)
|
||||
}
|
||||
}
|
||||
for id := range targets {
|
||||
if _, ok := sources[id]; ok {
|
||||
slog.Info(fmt.Sprintf("ID %s found in both lists", id))
|
||||
slog.Debug(fmt.Sprintf("ID %s found in both lists", id))
|
||||
} else {
|
||||
obsolete = append(obsolete, id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user