fix: ignore item_metadata logs if no data change.

This commit is contained in:
vnmedeiros 2021-06-17 00:30:44 -03:00
parent 8ff6746ac8
commit b16611ea1c
1 changed files with 3 additions and 1 deletions

View File

@ -740,7 +740,9 @@ class Logs extends Repository {
}
private function insert_item_metadata( Entities\Item_Metadata_Entity $entity ) {
if($this->current_diff == false) {
return;
}
$log = new Entities\Log();
$item_id = $entity->get_item()->get_id();