@okf/ootils 1.5.1 → 1.5.3

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/dist/node.js CHANGED
@@ -1029,7 +1029,7 @@ var require_GET_GLOBAL_BULLMQ_CONFIG = __commonJS({
1029
1029
  ...acc,
1030
1030
  [key]: {
1031
1031
  ...BASE_BULLMQ_CONFIG2[key],
1032
- id: BASE_BULLMQ_CONFIG2[key].id + `_${env}`,
1032
+ id: BASE_BULLMQ_CONFIG2[key].id + `_${process.env.NODE_ENV !== "production" ? `local_${process.env.USER || process.env.USERNAME}` : env}`,
1033
1033
  // suffix env to queue to keep it unique for each environment
1034
1034
  queueConfig: {
1035
1035
  connection: redisConnectionForBullMQ,
@@ -1468,7 +1468,7 @@ var getTpl = async ({ name, tenant }) => {
1468
1468
  throw new Error("Missing required parameters: name or tenant");
1469
1469
  }
1470
1470
  return await findInCache({
1471
- modelName: "tpls",
1471
+ modelName: "tpl",
1472
1472
  type: name,
1473
1473
  tenant,
1474
1474
  query: {
package/dist/node.mjs CHANGED
@@ -1034,7 +1034,7 @@ var require_GET_GLOBAL_BULLMQ_CONFIG = __commonJS({
1034
1034
  ...acc,
1035
1035
  [key]: {
1036
1036
  ...BASE_BULLMQ_CONFIG2[key],
1037
- id: BASE_BULLMQ_CONFIG2[key].id + `_${env}`,
1037
+ id: BASE_BULLMQ_CONFIG2[key].id + `_${process.env.NODE_ENV !== "production" ? `local_${process.env.USER || process.env.USERNAME}` : env}`,
1038
1038
  // suffix env to queue to keep it unique for each environment
1039
1039
  queueConfig: {
1040
1040
  connection: redisConnectionForBullMQ,
@@ -1439,7 +1439,7 @@ var getTpl = async ({ name, tenant }) => {
1439
1439
  throw new Error("Missing required parameters: name or tenant");
1440
1440
  }
1441
1441
  return await findInCache({
1442
- modelName: "tpls",
1442
+ modelName: "tpl",
1443
1443
  type: name,
1444
1444
  tenant,
1445
1445
  query: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.5.1",
6
+ "version": "1.5.3",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",