@okf/ootils 1.39.2 → 1.39.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.d.mts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +4 -3
- package/dist/node.mjs +4 -3
- package/package.json +1 -1
package/dist/node.d.mts
CHANGED
|
@@ -2082,7 +2082,7 @@ declare class RedisCacheConnector {
|
|
|
2082
2082
|
* @param {string} [params.tenant] - Tenant (either a single tenant or an array of tenants for whom the config cache should be refreshed)
|
|
2083
2083
|
* @static
|
|
2084
2084
|
*/
|
|
2085
|
-
static loadTplsAndPlatformConfigsToCache({ tenant }?: string): Promise<void>;
|
|
2085
|
+
static loadTplsAndPlatformConfigsToCache({ tenant, env }?: string): Promise<void>;
|
|
2086
2086
|
/**
|
|
2087
2087
|
* @param {Object} options
|
|
2088
2088
|
*
|
package/dist/node.d.ts
CHANGED
|
@@ -2082,7 +2082,7 @@ declare class RedisCacheConnector {
|
|
|
2082
2082
|
* @param {string} [params.tenant] - Tenant (either a single tenant or an array of tenants for whom the config cache should be refreshed)
|
|
2083
2083
|
* @static
|
|
2084
2084
|
*/
|
|
2085
|
-
static loadTplsAndPlatformConfigsToCache({ tenant }?: string): Promise<void>;
|
|
2085
|
+
static loadTplsAndPlatformConfigsToCache({ tenant, env }?: string): Promise<void>;
|
|
2086
2086
|
/**
|
|
2087
2087
|
* @param {Object} options
|
|
2088
2088
|
*
|
package/dist/node.js
CHANGED
|
@@ -4686,9 +4686,9 @@ var RedisCacheConnector = class _RedisCacheConnector {
|
|
|
4686
4686
|
* @param {string} [params.tenant] - Tenant (either a single tenant or an array of tenants for whom the config cache should be refreshed)
|
|
4687
4687
|
* @static
|
|
4688
4688
|
*/
|
|
4689
|
-
static async loadTplsAndPlatformConfigsToCache({ tenant }) {
|
|
4689
|
+
static async loadTplsAndPlatformConfigsToCache({ tenant, env }) {
|
|
4690
4690
|
try {
|
|
4691
|
-
const environment = this.getEnv();
|
|
4691
|
+
const environment = env || this.getEnv();
|
|
4692
4692
|
const client = this.getClient(environment);
|
|
4693
4693
|
if (!tenant) throw new Error("No tenant/s defined to recache");
|
|
4694
4694
|
console.log(`Loading configs and templates into cache...`);
|
|
@@ -4720,7 +4720,8 @@ var RedisCacheConnector = class _RedisCacheConnector {
|
|
|
4720
4720
|
tenant: tenant2,
|
|
4721
4721
|
modelName,
|
|
4722
4722
|
type,
|
|
4723
|
-
val: doc
|
|
4723
|
+
val: doc,
|
|
4724
|
+
env: environment
|
|
4724
4725
|
});
|
|
4725
4726
|
})
|
|
4726
4727
|
);
|
package/dist/node.mjs
CHANGED
|
@@ -4615,9 +4615,9 @@ var RedisCacheConnector = class _RedisCacheConnector {
|
|
|
4615
4615
|
* @param {string} [params.tenant] - Tenant (either a single tenant or an array of tenants for whom the config cache should be refreshed)
|
|
4616
4616
|
* @static
|
|
4617
4617
|
*/
|
|
4618
|
-
static async loadTplsAndPlatformConfigsToCache({ tenant }) {
|
|
4618
|
+
static async loadTplsAndPlatformConfigsToCache({ tenant, env }) {
|
|
4619
4619
|
try {
|
|
4620
|
-
const environment = this.getEnv();
|
|
4620
|
+
const environment = env || this.getEnv();
|
|
4621
4621
|
const client = this.getClient(environment);
|
|
4622
4622
|
if (!tenant) throw new Error("No tenant/s defined to recache");
|
|
4623
4623
|
console.log(`Loading configs and templates into cache...`);
|
|
@@ -4649,7 +4649,8 @@ var RedisCacheConnector = class _RedisCacheConnector {
|
|
|
4649
4649
|
tenant: tenant2,
|
|
4650
4650
|
modelName,
|
|
4651
4651
|
type,
|
|
4652
|
-
val: doc
|
|
4652
|
+
val: doc,
|
|
4653
|
+
env: environment
|
|
4653
4654
|
});
|
|
4654
4655
|
})
|
|
4655
4656
|
);
|