@wrcb/cb-common 1.0.310 → 1.0.311
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Tenant } from 'src/types/tenant';
|
|
1
2
|
export declare class RedisService {
|
|
2
3
|
static ReturnMinutesInSeconds(minutes: number): number;
|
|
3
4
|
static ReturnDaysInSeconds(days: number): number;
|
|
4
|
-
static emailVerificationKey(email: string): string;
|
|
5
|
-
static whatsappVerificationKey(email: string): string;
|
|
5
|
+
static emailVerificationKey(tenant: Tenant, email: string): string;
|
|
6
|
+
static whatsappVerificationKey(tenant: Tenant, email: string): string;
|
|
6
7
|
}
|
|
@@ -8,11 +8,11 @@ class RedisService {
|
|
|
8
8
|
static ReturnDaysInSeconds(days) {
|
|
9
9
|
return days * 24 * 60 * 60;
|
|
10
10
|
}
|
|
11
|
-
static emailVerificationKey(email) {
|
|
12
|
-
return email + ':email:verification';
|
|
11
|
+
static emailVerificationKey(tenant, email) {
|
|
12
|
+
return tenant + ':' + email + ':email:verification';
|
|
13
13
|
}
|
|
14
|
-
static whatsappVerificationKey(email) {
|
|
15
|
-
return email + ':whatsapp:verification';
|
|
14
|
+
static whatsappVerificationKey(tenant, email) {
|
|
15
|
+
return tenant + ':' + email + ':whatsapp:verification';
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
exports.RedisService = RedisService;
|