Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
[KDG] cast Uuid::uuid4() to string
Browse files Browse the repository at this point in the history
Signed-off-by: Wilker Mesquita <wilker@kirschbaumdevelopment.com>
  • Loading branch information
wilkerwma committed Aug 23, 2024
1 parent 3fc2d4f commit a1d6465
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
}
],
"require": {
"php": ">=8.0",
"php": "^8.2",
"owen-it/laravel-auditing": "^13.6",
"elasticsearch/elasticsearch": "^8.*"
"elasticsearch/elasticsearch": "^8.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/ElasticSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function indexAuditDocument($model)
$params = [
'index' => $this->index,
'type' => $this->type,
'id' => Uuid::uuid4(),
'id' => (string) Uuid::uuid4(),
'body' => $model
];

Expand Down

0 comments on commit a1d6465

Please sign in to comment.