Skip to content

Commit

Permalink
Fixed "Error preparing batch api data"
Browse files Browse the repository at this point in the history
  • Loading branch information
paustint committed May 30, 2023
1 parent f8101dc commit cbf2553
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ function getRelatedFieldsQueries(baseObject: string, relatedObject: string, rela
let tempRelatedValues: string[] = [];
let currLength = BASE_QUERY_LENGTH;
relatedValues.forEach((value) => {
tempRelatedValues.push(value.replaceAll(`'`, `\\'`).replaceAll(`\\n`, `\\\\n`));
tempRelatedValues.push(isString(value) ? value.replaceAll(`'`, `\\'`).replaceAll(`\\n`, `\\\\n`) : value);
currLength += value.length + QUERY_ITEM_BUFFER_LENGTH;
if (currLength >= MAX_QUERY_LENGTH) {
const tempQuery = { ...baseQuery };
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
"slack-notify": "^0.1.7",
"socket.io": "^4.2.0",
"socket.io-client": "^4.2.0",
"soql-parser-js": "^4.8.2",
"soql-parser-js": "^4.9.1",
"split.js": "^1.6.5",
"superagent": "^5.2.2",
"tslib": "^2.3.0",
Expand Down
58 changes: 39 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2525,15 +2525,32 @@
resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@chevrotain/types@^9.1.0":
version "9.1.0"
resolved "https://registry.npmjs.org/@chevrotain/types/-/types-9.1.0.tgz"
integrity sha512-3hbCD1CThkv9gnaSIPq0GUXwKni68e0ph6jIHwCvcWiQ4JB2xi8bFxBain0RF04qHUWuDjgnZLj4rLgimuGO+g==
"@chevrotain/cst-dts-gen@10.5.0":
version "10.5.0"
resolved "https://registry.yarnpkg.com/@chevrotain/cst-dts-gen/-/cst-dts-gen-10.5.0.tgz#922ebd8cc59d97241bb01b1b17561a5c1ae0124e"
integrity sha512-lhmC/FyqQ2o7pGK4Om+hzuDrm9rhFYIJ/AXoQBeongmn870Xeb0L6oGEiuR8nohFNL5sMaQEJWCxr1oIVIVXrw==
dependencies:
"@chevrotain/gast" "10.5.0"
"@chevrotain/types" "10.5.0"
lodash "4.17.21"

"@chevrotain/utils@^9.1.0":
version "9.1.0"
resolved "https://registry.npmjs.org/@chevrotain/utils/-/utils-9.1.0.tgz"
integrity sha512-llLJZ8OAlZrjGlBvamm6Zdo/HmGAcCLq5gx7cSwUX8No+n/8ip+oaC4x33IdZIif8+Rh5dQUIZXmfbSghiOmNQ==
"@chevrotain/gast@10.5.0":
version "10.5.0"
resolved "https://registry.yarnpkg.com/@chevrotain/gast/-/gast-10.5.0.tgz#e4e614bc46d17a8892742f38e56cd33f1f3ad162"
integrity sha512-pXdMJ9XeDAbgOWKuD1Fldz4ieCs6+nLNmyVhe2gZVqoO7v8HXuHYs5OV2EzUtbuai37TlOAQHrTDvxMnvMJz3A==
dependencies:
"@chevrotain/types" "10.5.0"
lodash "4.17.21"

"@chevrotain/types@10.5.0":
version "10.5.0"
resolved "https://registry.yarnpkg.com/@chevrotain/types/-/types-10.5.0.tgz#52a97d74a8cfbc197f054636d93ecd8912d33d21"
integrity sha512-f1MAia0x/pAVPWH/T73BJVyO2XU5tI4/iE7cnxb7tqdNTNhQI3Uq3XkqcoteTmD4t1aM0LbHCJOhgIDn07kl2A==

"@chevrotain/utils@10.5.0":
version "10.5.0"
resolved "https://registry.yarnpkg.com/@chevrotain/utils/-/utils-10.5.0.tgz#0ee36f65b49b447fbac71b9e5af5c5c6c98ac057"
integrity sha512-hBzuU5+JjB2cqNZyszkDHZgOSrUUT8V3dhgRl8Q9Gp6dAj/H5+KILGjbhDpc3Iy9qmqlm/akuOI2ut9VUtzJxQ==

"@cnakazawa/watch@^1.0.3":
version "1.0.4"
Expand Down Expand Up @@ -11552,13 +11569,16 @@ cheerio@^1.0.0-rc.12:
parse5 "^7.0.0"
parse5-htmlparser2-tree-adapter "^7.0.0"

chevrotain@^9.0.1:
version "9.1.0"
resolved "https://registry.npmjs.org/chevrotain/-/chevrotain-9.1.0.tgz"
integrity sha512-A86/55so63HCfu0dgGg3j9u8uuuBOrSqly1OhBZxRu2x6sAKILLzfVjbGMw45kgier6lz45EzcjjWtTRgoT84Q==
chevrotain@^10.5.0:
version "10.5.0"
resolved "https://registry.yarnpkg.com/chevrotain/-/chevrotain-10.5.0.tgz#9c1dc62ef0753bb562dbe521b5f72d041bad624e"
integrity sha512-Pkv5rBY3+CsHOYfV5g/Vs5JY9WTHHDEKOlohI2XeygaZhUeqhAlldZ8Hz9cRmxu709bvS08YzxHdTPHhffc13A==
dependencies:
"@chevrotain/types" "^9.1.0"
"@chevrotain/utils" "^9.1.0"
"@chevrotain/cst-dts-gen" "10.5.0"
"@chevrotain/gast" "10.5.0"
"@chevrotain/types" "10.5.0"
"@chevrotain/utils" "10.5.0"
lodash "4.17.21"
regexp-to-ast "0.5.0"

"chokidar@>=3.0.0 <4.0.0", chokidar@^3.4.1, chokidar@^3.4.2, chokidar@^3.5.1, chokidar@^3.5.3:
Expand Down Expand Up @@ -26311,12 +26331,12 @@ sonic-boom@^2.2.1:
dependencies:
atomic-sleep "^1.0.0"

soql-parser-js@^4.8.2:
version "4.8.2"
resolved "https://registry.yarnpkg.com/soql-parser-js/-/soql-parser-js-4.8.2.tgz#05448ad8bb11aa00d033fb989cbcb78c91332293"
integrity sha512-vG1SUEWS5Gq18t48oLHWLAvGytFJkdxHpl+olynB0aVB+5gMiQVZhSfVSYzNyYcebX4IvLzDpFRcd7WJDD+09g==
soql-parser-js@^4.9.1:
version "4.9.1"
resolved "https://registry.yarnpkg.com/soql-parser-js/-/soql-parser-js-4.9.1.tgz#6f279e38de86712ad7bd6cc8aa847377a0a87a73"
integrity sha512-wXIqabiUN1QhmdNc/IuwMV9+jhm4zS29gfTA05EFusELijak2HdOc+DQcpeD/Fccy4R1N7HEyUnZXbRiEUH1+w==
dependencies:
chevrotain "^9.0.1"
chevrotain "^10.5.0"
commander "^2.20.3"
lodash.get "^4.4.2"

Expand Down

0 comments on commit cbf2553

Please sign in to comment.