Scheduler deleted

This commit is contained in:
mr 2024-08-22 10:51:07 +02:00
parent 20b5955ba9
commit 7206de35a8
2 changed files with 5 additions and 1 deletions

View File

@ -81,7 +81,11 @@ func (s *ScheduleManager) listenForChange(nc *nats.Conn, chanName string, delete
for msg := range ch {
map_mess := map[string]string{}
json.Unmarshal(msg.Data, &map_mess)
fmt.Println("Catching new workflow... " + map_mess["id"])
str := "new"
if delete {
str = "deleted"
}
fmt.Println("Catching " + str + " workflow... " + map_mess["id"])
if delete {
Bookings.DeleteSchedules(map_mess["id"])
} else {

Binary file not shown.