Compare commits

...

2 Commits

Author SHA1 Message Date
zelda 6c6b1a8b36 Merge pull request 'fix timeout wait to verify code' (#92) from main into staging
Reviewed-on: #92
2025-08-25 12:25:18 +10:00
Admin 85f252cac7 fix timeout wait to verify code 2025-08-25 09:24:29 +07:00
1 changed files with 2 additions and 2 deletions

View File

@ -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ớ
rej(
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) => {
console.log(`📢 [${this.id}] VERIFY CODE:`, data);