Skip to content

Commit

Permalink
Merge pull request #11 from bluefyn-international/fix/atomic-action-s…
Browse files Browse the repository at this point in the history
…erialization

Fix attribute hash generation
  • Loading branch information
Quentin Schmick authored Apr 27, 2022
2 parents 25a7c0c + 3c956b7 commit 7c6570e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Models/Traits/AtomicDatabaseActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ protected static function atomicDatabaseAction(string $action, array $attributes

protected static function getAtomicCacheKey(array $attributes) : string
{
return get_called_class() . ':' . md5(serialize(sort($attributes)));
sort($attributes);

return get_called_class() . ':' . md5(serialize($attributes));
}
}

0 comments on commit 7c6570e

Please sign in to comment.