fix compatiblity with older entries

This commit is contained in:
Jonas Leder 2025-01-11 13:13:33 +01:00
commit 2de0326be5

View file

@ -83,10 +83,6 @@ func getFmsListe(messageParts []string) string {
err = database.Db.Where("radio_name = ?", status.Name).First(&radioCallSign).Error
if err != nil {
log.Log.Error("Failed retreiving radio call sign: ", err.Error())
return "Internal error"
}
if radioCallSign.RadioName == "" {
log.Log.Info("No radio definition for ", status.Name, " skipping")
continue
}
response += fmt.Sprintf("SetFMSListe\t%s\tBF/FF\tSTATE\tCITY\t%s\tFZ->LST\t%s\t\t%d\tman\t%s\t0,0\n",