server/lib/room/room.getBySelector.js
Function getBySelector
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function getBySelector(selector, options) {
const optionsWithDefault = { ...DEFAULT_OPTIONS, ...options };
const include = [];
if (optionsWithDefault.expand.includes('devices')) {
include.push({