mirror of
https://github.com/bitwarden/server
synced 2025-12-23 19:53:40 +00:00
add delay for webhook race condition
This commit is contained in:
@@ -95,6 +95,10 @@ namespace Bit.Billing.Controllers
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// A race condition is happening between the time of purchase and receiving this webhook. Add some
|
||||||
|
// artificial delay here to help combat that.
|
||||||
|
await Task.Delay(2000);
|
||||||
|
|
||||||
// org
|
// org
|
||||||
if(ids.Item1.HasValue)
|
if(ids.Item1.HasValue)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user