diff --git a/app/http/endpoints/api/whitelabel/whitelabelpost.go b/app/http/endpoints/api/whitelabel/whitelabelpost.go index e22b734..cf64640 100644 --- a/app/http/endpoints/api/whitelabel/whitelabelpost.go +++ b/app/http/endpoints/api/whitelabel/whitelabelpost.go @@ -16,6 +16,7 @@ import ( "github.com/rxdn/gdl/rest" "strconv" "strings" + "time" ) func WhitelabelPost() func(*gin.Context) { @@ -73,6 +74,9 @@ func WhitelabelPost() func(*gin.Context) { return } + // Allow some time for the database change to be propagated + time.Sleep(time.Millisecond * 500) + // Set intents var currentFlags application.Flag = 0 if bot.Flags != nil {