Skip to content

Commit

Permalink
Merge branch 'v3-dev-upgrades-and-improvements' of https://github.com…
Browse files Browse the repository at this point in the history
…/YorCreative/Laravel-UrlShortener into v3-dev-upgrades-and-improvements
  • Loading branch information
yordadev committed Aug 22, 2024
2 parents 46e254d + 217ebdd commit 12a3349
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Repositories/ClickRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static function createClick(int $short_url_id, int $location_id, int $out
'location_id' => $location_id,
'outcome_id' => $outcome_id,
'headers' => $headers,
'headers_signature' => md5(json_encode($headers))
'headers_signature' => md5(json_encode($headers)),
]);
} catch (Exception $exception) {
throw new UrlRepositoryException($exception->getMessage());
Expand Down
2 changes: 1 addition & 1 deletion src/Utility/Factories/ShortUrlClickFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function definition()
'location_id' => ShortUrlLocation::factory(),
'outcome_id' => ClickService::$SUCCESS_ROUTED,
'headers' => $headers = ['Accept' => 'application/json'],
'headers_signature' => md5(json_encode($headers))
'headers_signature' => md5(json_encode($headers)),
];
}

Expand Down

0 comments on commit 12a3349

Please sign in to comment.