Fix[WorkerFilter]: Fixed filter #3394
|
@ -166,12 +166,11 @@ module.exports = Self => {
|
||||||
LEFT JOIN account.emailUser eu ON eu.userFk = u.id`
|
LEFT JOIN account.emailUser eu ON eu.userFk = u.id`
|
||||||
);
|
);
|
||||||
|
|
||||||
stmt.merge(conn.makeWhere(filter.where));
|
stmt.merge(conn.makeSuffix(filter));
|
||||||
stmts.push(stmt);
|
let itemsIndex = stmts.push(stmt) - 1;
|
||||||
|
|
||||||
const itemsIndex = stmts.push(stmt) - 1;
|
let sql = ParameterizedSQL.join(stmts, ';');
|
||||||
const sql = ParameterizedSQL.join(stmts, ';');
|
let result = await conn.executeStmt(sql);
|
||||||
const result = await conn.executeStmt(sql, myOptions);
|
return itemsIndex === 0 ? result : result[itemsIndex];
|
||||||
return result[itemsIndex];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue