We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c2bf8d commit 30ffb24Copy full SHA for 30ffb24
Services/AssistantService.cs
@@ -37,6 +37,14 @@ public async Task SendEventsToCart(Guid cartId)
37
e.Season!.EndTime >= DateTime.UtcNow).OrderBy(e => e.StartTime).ToListAsync()
38
: [];
39
40
+ foreach (var evt in events)
41
+ {
42
+ if (evt.StartTime >= DateTime.UtcNow || evt.EndTime <= DateTime.UtcNow)
43
44
+ evt.Key = "(unavailable)";
45
+ }
46
47
+
48
await hubContext.Clients.User(cartId.ToString()).SendAsync("Events", events);
49
}
50
0 commit comments