@wrcb/cb-common 1.0.517 → 1.0.519

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.
@@ -6,4 +6,5 @@ export declare class RedisService {
6
6
  static whatsappVerificationKey(tenant: Tenant, email: string): string;
7
7
  static withdrawSettingsKey(tenant: Tenant): string;
8
8
  static maintenanceSettingsKey(tenant: Tenant): string;
9
+ static userBalanceKey(tenant: Tenant, userId: string): string;
9
10
  }
@@ -20,5 +20,8 @@ class RedisService {
20
20
  static maintenanceSettingsKey(tenant) {
21
21
  return tenant + ':maintenance:settings';
22
22
  }
23
+ static userBalanceKey(tenant, userId) {
24
+ return tenant + ':' + userId + ':balance';
25
+ }
23
26
  }
24
27
  exports.RedisService = RedisService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.517",
3
+ "version": "1.0.519",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",