public function qualify()
{
if (!$this->isPending()) {
return false;
}
DB::transaction(function () {
$this->events()->create(['type' => BeatmapsetEvent::QUALIFY]);
$this->approved = self::STATES['qualified'];
$this->approved_date = Carbon::now();
$this->save();
});
return true;
}