getBuilder() ->withTrashed() ->where('server_id', $server) ->whereNull('completed_at') ->orWhere('is_successful', '=', true) ->where('created_at', '>=', Carbon::now()->subSeconds($seconds)->toDateTimeString()) ->get() ->toBase(); } }