@toxplanet/pegasus-sdk 1.1.9 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/chemicals.js +1 -2
- package/lib/elasticsearch.js +2 -1
- package/package.json +1 -1
package/lib/chemicals.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { logError } = require('@toxplanet/tphelper/logging');
|
|
1
|
+
const { logError, logInfo } = require('@toxplanet/tphelper/logging');
|
|
2
2
|
const { getDrizzle, schema } = require('./db');
|
|
3
3
|
const { eq, sql, and, inArray, arrayContains } = require('drizzle-orm');
|
|
4
4
|
|
|
@@ -658,7 +658,6 @@ class ChemicalsService {
|
|
|
658
658
|
},
|
|
659
659
|
|
|
660
660
|
bulk: async (params) => {
|
|
661
|
-
const { logInfo, logError } = require('@toxplanet/tphelper/logging');
|
|
662
661
|
const operations = params.body || params.operations;
|
|
663
662
|
|
|
664
663
|
logInfo('pegasus-sdk', `[ChemicalsService.bulk] Starting bulk operation with ${operations?.length || 0} total operations`);
|
package/lib/elasticsearch.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const { logInfo, logError } = require('@toxplanet/tphelper/logging');
|
|
2
|
+
|
|
1
3
|
class ElasticsearchService {
|
|
2
4
|
constructor(connection) {
|
|
3
5
|
this.connection = connection;
|
|
@@ -64,7 +66,6 @@ class ElasticsearchService {
|
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
async bulk(params) {
|
|
67
|
-
const { logInfo, logError } = require('@toxplanet/tphelper/logging');
|
|
68
69
|
const operations = params.body || params.operations;
|
|
69
70
|
|
|
70
71
|
logInfo('pegasus-sdk', `[ElasticsearchService.bulk] Starting bulk routing with ${operations?.length || 0} operations`);
|
package/package.json
CHANGED