mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
add delay for webhook race condition
This commit is contained in:
@ -95,6 +95,10 @@ namespace Bit.Billing.Controllers
|
||||
}
|
||||
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
|
||||
if(ids.Item1.HasValue)
|
||||
{
|
||||
|
Reference in New Issue
Block a user