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 a3548d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}
],
"require": {
"php": ">=8.0",
"php": "^8.2",
"owen-it/laravel-auditing": "^13.6",
"elasticsearch/elasticsearch": "^8.*"
},
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 a3548d8

Please sign in to comment.