bugfix on configuration

main
Nilo Roberto C Paim 2025-12-05 23:51:34 -03:00
parent 33fa138c68
commit 25fbb60a5e
1 changed files with 1 additions and 3 deletions

View File

@ -33,13 +33,11 @@ func VerifyTransmissionAuthorization(channelname, sessionid, transmissionkey, pl
currentTransmission models.CurrentTransmission
)
result := globals.DB.Debug().Where("nome = ?", channelname).First(&channel)
result := globals.DB.Where("nome = ?", channelname).First(&channel)
if result.Error != nil {
log.Printf("Error finding channel '%s': %v\n", channelname, result.Error)
}
log.Printf("================================================== Canal encontrado: %v\n", channel)
currentTransmission.Canal = channel.Nome
currentTransmission.SessionID = sessionid
currentTransmission.Chave = transmissionkey