Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
🐛 Stringify JSON response
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Mar 21, 2020
1 parent ee15cff commit 50db1ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@staart/api",
"version": "1.3.152",
"version": "1.3.153",
"main": "index.js",
"repository": "[email protected]:staart/api.git",
"author": "Anand Chowdhary <[email protected]>",
Expand Down Expand Up @@ -91,5 +91,5 @@
"setup"
],
"snyk": true,
"staart-version": "1.3.152"
"staart-version": "1.3.153"
}
5 changes: 4 additions & 1 deletion src/helpers/elasticsearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export const receiveElasticSearchMessage = async () => {
};
} = JSON.parse(result.message);
if (tryNumber && tryNumber > 3) {
logError("ElasticSearch", `Unable to save record: ${indexParams}`);
logError(
"ElasticSearch",
`Unable to save record: ${JSON.stringify(indexParams)}`
);
return redisQueue.deleteMessageAsync({
qname: ELASTIC_QUEUE,
id: result.id
Expand Down

0 comments on commit 50db1ed

Please sign in to comment.