Commit 0c2f40a2 authored by Mark Harding's avatar Mark Harding

(fix): avoid duplicates of notifications with timeuuid

parent c20c0859
No related merge requests found
Pipeline #67444892 passed with stages
in 6 minutes and 30 seconds
......@@ -122,7 +122,7 @@ class CassandraRepository
public function add($notification)
{
if (!$notification->getUuid()) {
$notification->setUuid((new Timeuuid($notification->getUuid() ?? time() * 1000))->uuid());
$notification->setUuid((new Timeuuid($notification->getUuid() ?? null))->uuid());
}
$statement = 'INSERT INTO notifications (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment