diff --git a/src/Integrations/Base/AppIntegrationTrait.php b/src/Integrations/Base/AppIntegrationTrait.php index f47f2d30..c03a1b8b 100644 --- a/src/Integrations/Base/AppIntegrationTrait.php +++ b/src/Integrations/Base/AppIntegrationTrait.php @@ -287,13 +287,13 @@ protected function pullRequestReview(App $app, array $payload, callable $request $key = "repo:$name:$iid"; $commentId = null; - if (false === $this->redis->hSetNx($setId, $key, 0)) { - $commentId = $this->redis->hGet($setId, $key); + if (false === $this->redis->hSetNx($setId, $key, '0')) { + $commentId = (int)$this->redis->hGet($setId, $key); } if ($commentId === null) { $review = $request("POST", $diff); - $this->redis->hSet($setId, $key, $review['id']); + $this->redis->hSet($setId, $key, (string)$review['id']); $this->redis->hSet($setId, "$key:diff", sha1($diff)); return []; }