mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-30 11:09:54 +03:00
Trigger scheduled event status update code when a ScheduledEventData is created
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
f260681b39
commit
dd31811dff
2 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ public sealed class ScheduledEventUpdateService : BackgroundService
|
|||
{
|
||||
if (!data.ScheduledEvents.ContainsKey(scheduledEvent.ID.Value))
|
||||
{
|
||||
data.ScheduledEvents.Add(scheduledEvent.ID.Value, new ScheduledEventData(scheduledEvent.Status));
|
||||
data.ScheduledEvents.Add(scheduledEvent.ID.Value, new ScheduledEventData(null));
|
||||
}
|
||||
|
||||
var storedEvent = data.ScheduledEvents[scheduledEvent.ID.Value];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue