feat(demo): Do not alert for demo
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Matthieu 'JP' DERASSE 2023-06-21 13:47:10 +00:00
parent 82f0e71ccc
commit 8fa7736b88
Signed by: mderasse
GPG Key ID: 55141C777B16A705

View File

@ -67,6 +67,11 @@ func checkPrice(alertChan chan api.Availability) {
} }
for _, availability := range availabilities.Results { for _, availability := range availabilities.Results {
if availability.IsDemo {
continue
}
if availability.Price < 39000 && availability.Trim[0] == "SRRWD" { if availability.Price < 39000 && availability.Trim[0] == "SRRWD" {
log.Info("Launching an alert !") log.Info("Launching an alert !")
alertChan <- availability alertChan <- availability