Remove unnecessary cast
This commit is contained in:
parent
58bd346885
commit
62f5790a81
|
@ -193,15 +193,7 @@ export class ExternalRequest<T extends Operation> {
|
||||||
for (let field of Object.keys(operator || {})) {
|
for (let field of Object.keys(operator || {})) {
|
||||||
if (dbCore.removeKeyNumbering(field) === "_id") {
|
if (dbCore.removeKeyNumbering(field) === "_id") {
|
||||||
if (primary) {
|
if (primary) {
|
||||||
let idField = operator[field]
|
const parts = breakRowIdField(operator[field])
|
||||||
try {
|
|
||||||
// Make sure _id queries decode the Row IDs
|
|
||||||
idField = JSON.parse(idField)
|
|
||||||
} catch {
|
|
||||||
// It is not a JSON value
|
|
||||||
}
|
|
||||||
|
|
||||||
const parts = breakRowIdField(idField)
|
|
||||||
if (primary.length > 1) {
|
if (primary.length > 1) {
|
||||||
operator[sql.Sql.COMPLEX_ID_OPERATOR] = {
|
operator[sql.Sql.COMPLEX_ID_OPERATOR] = {
|
||||||
id: primary,
|
id: primary,
|
||||||
|
|
Loading…
Reference in New Issue