symbiote / silverstripe-queuedjobs

A module that provides interfaces for scheduling jobs for certain times.
BSD 3-Clause "New" or "Revised" License
57 stars 73 forks source link

FIX Use record() instead of first() #394

Closed emteknetnz closed 1 year ago

emteknetnz commented 1 year ago

Issue https://github.com/silverstripeltd/product-issues/issues/642

first() was removed in CMS5 - it was just an alias for record()

I can't link to a CI failure specifically, but I get this on my local

] - Queued Jobs - Failed to acquire job lock Call to undefined method SilverStripe\ORM\Connect\MySQLQuery::first() 2 {"file":"/var/www/vendor/symbiote/silverstripe-queuedjobs/src/Services/QueuedJobService.php","line":777} []