Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/InventoryManagementSystem.sln
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ Global
{5E783740-3A81-4C1A-AB33-617CDED7E7AD}.Release|x86.ActiveCfg = Release|Any CPU
{5E783740-3A81-4C1A-AB33-617CDED7E7AD}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{9A5F9FC6-8F3C-42FF-A04E-F5C9527646DB} = {B9E83740-3A81-4C1A-AB33-617CDED7E7AE}
{FFE36D59-CD3A-4C4B-BFFA-E7C7A6955C06} = {B9E83740-3A81-4C1A-AB33-617CDED7E7AE}
{8AEACF55-3718-4F82-B731-305FD8ECAA1F} = {B9E83740-3A81-4C1A-AB33-617CDED7E7AE}
{51B44AE9-AC73-4B5D-8B25-672C921A704D} = {B9E83740-3A81-4C1A-AB33-617CDED7E7AE}
{5E783740-3A81-4C1A-AB33-617CDED7E7AD} = {B9E83740-3A81-4C1A-AB33-617CDED7E7AE}
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ flowchart TD

H & I & J --> K{Breached?}
K -- Yes --> L{Redis Cooldown active?}
L -- Yes --> M[Skip — inventoryalert:alerts:cooldown:v1:{userId}:{ruleId} exists]
L -- Yes --> M["Skip — inventoryalert:alerts:cooldown:v1:{userId}:{ruleId} exists"]
L -- No --> N[1. INSERT Notification row]
N --> O[2. SET inventoryalert:alerts:cooldown:v1:{userId}:{ruleId} TTL=24h]
N --> O["2. SET inventoryalert:alerts:cooldown:v1:{userId}:{ruleId} TTL=24h"]
O --> P[3. Push via SignalR HubContext]
P --> Q{TriggerOnce?}
Q -- Yes --> R[UPDATE AlertRule SET IsActive = false]
Expand Down
Loading