Skip to content

Commit

Permalink
improving output for PS+PQ values
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Oct 7, 2019
1 parent 2285627 commit 94fc326
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const monitor = {
msg.push(cct.query('text=') + '"' + cct.value(q.text) + '"');
}
if (Array.isArray(q.values) && q.values.length) {
msg.push(cct.query('values=') + cct.value(q.values));
msg.push(cct.query('values=') + cct.value(toJson(q.values)));
}
q = msg.join(', ');
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg-monitor",
"version": "1.3.0",
"version": "1.3.1",
"description": "Event monitor for pg-promise.",
"main": "lib/index.js",
"typings": "typescript/pg-monitor.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion test/events/query.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('Query - Positive', () => {
options.query(e);
});
it('must be successful', () => {
expect(text).toEqual('task(123): name="queryName", text="queryText", values=1,2,3');
expect(text).toEqual('task(123): name="queryName", text="queryText", values=[1,2,3]');
});
it('must call the old method', () => {
expect(cb).toEqual(e);
Expand Down

0 comments on commit 94fc326

Please sign in to comment.