1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

add delay for webhook race condition

This commit is contained in:
Kyle Spearrin 2017-12-01 08:02:40 -05:00
parent c988171f09
commit 8f09a165e2

View File

@ -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)
{