mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05: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