mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +00:00
Playing around with stuff
This commit is contained in:
1 parent
282e99df18
commit
04670233bc
9 files changed
+98
-37
No files matched your search
@@ -11,6 +11,7 @@ import './sv_photo';
|
||||
import './sv_messages';
|
||||
import './sv_match';
|
||||
import './sv_call';
|
||||
import './sv_email';
|
||||
import './players/sv_player_events';
|
||||
import { mainLogger } from './sv_logger';
|
||||
|
||||
|
||||
@@ -120,12 +120,13 @@ onNet(events.EMAIL_FETCH_INBOX, async () => {
|
||||
try {
|
||||
const email = '[email protected]';
|
||||
const messages = await fetchInbox(email);
|
||||
await new Promise((res) => setTimeout(res, 6000));
|
||||
const inbox = getEmailsFromMessages(messages, email);
|
||||
emitNet(events.EMAIL_FETCH_INBOX_SUCCESS, inbox);
|
||||
emitNet(events.EMAIL_FETCH_INBOX_SUCCESS, _source, inbox);
|
||||
} catch (e) {
|
||||
emailLogger.error(`Failed to fetch email inbox, ${e.message}`, {
|
||||
source: _source,
|
||||
});
|
||||
emitNet(events.EMAIL_FETCH_INBOX_ERROR, e);
|
||||
emitNet(events.EMAIL_FETCH_INBOX_ERROR, _source, e);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user