Skip to content

Commit

Permalink
Add sleep to reset request
Browse files Browse the repository at this point in the history
  • Loading branch information
alroniks authored Aug 30, 2018
1 parent 29b2591 commit b61de11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/Repository/Http/Controllers/PackageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ public function update(ServerRequestInterface $request, ResponseInterface $respo
*/
public function reset(ServerRequestInterface $request, ResponseInterface $response) : ResponseInterface
{
sleep(10); // sleeps 10 seconds before starting processing request,
// because payload with package is not ready right after
// triggering the webhook

$token = $request->getAttribute('token');

$tokenStorage = 'config/token.key';
Expand Down

0 comments on commit b61de11

Please sign in to comment.