1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-03 18:50:05 +00:00

fix(context): fixed log parsing

This commit is contained in:
Yury Shkoda
2020-11-19 16:39:47 +03:00
parent 35aa4235e4
commit 83c46091b3
2 changed files with 3 additions and 2 deletions

View File

@@ -164,9 +164,9 @@ export class SASViyaApiClient {
for (const promise of promises) results.push(await promise())
results.forEach((result: any, index: number) => {
if (result && result.body && result.body.details) {
if (result && result.error && result.error.details) {
try {
const resultParsed = JSON.parse(result.body.details)
const resultParsed = result.error.details
if (resultParsed && resultParsed.body) {
let sysUserId = ''