Merge pull request 'fix timeout wait to verify code' (#92) from main into staging
Reviewed-on: #92
This commit is contained in:
commit
6c6b1a8b36
|
|
@ -22,10 +22,10 @@ export class LangtonsApiBid extends ApiBid {
|
||||||
global.socket.off(`verify-code.${this.origin_url}`); // Xóa listener tránh rò rỉ bộ nhớ
|
global.socket.off(`verify-code.${this.origin_url}`); // Xóa listener tránh rò rỉ bộ nhớ
|
||||||
rej(
|
rej(
|
||||||
new Error(
|
new Error(
|
||||||
`[${this.id}] Timeout: No verification code received within 1 minute.`
|
`[${this.id}] Timeout: No verification code received within 3 minute.`
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}, 120 * 1000); // 120 giây
|
}, 180 * 1000); // 180 giây
|
||||||
|
|
||||||
global.socket.on(`verify-code.${this.origin_url}`, async (data) => {
|
global.socket.on(`verify-code.${this.origin_url}`, async (data) => {
|
||||||
console.log(`📢 [${this.id}] VERIFY CODE:`, data);
|
console.log(`📢 [${this.id}] VERIFY CODE:`, data);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue