feat(sync): sync_wa_voice_calls + scheduler ENTITY_FUNCS wa_voice_calls
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -58,6 +58,7 @@ from app.sync.orchestrator import (
|
||||
sync_departments,
|
||||
sync_phone_calls,
|
||||
sync_sms,
|
||||
sync_wa_voice_calls,
|
||||
sync_wechat_accounts,
|
||||
sync_wechat_friends,
|
||||
sync_wechat_groups,
|
||||
@@ -152,6 +153,12 @@ async def _run_voice_calls(
|
||||
return [await sync_wechat_voice_calls(session, client)]
|
||||
|
||||
|
||||
async def _run_wa_voice_calls(
|
||||
session: AsyncSession, client: YunkeClient, store: ObjectStore
|
||||
) -> list[SyncResult]:
|
||||
return [await sync_wa_voice_calls(session, client)]
|
||||
|
||||
|
||||
async def _run_phone_calls(
|
||||
session: AsyncSession, client: YunkeClient, store: ObjectStore
|
||||
) -> list[SyncResult]:
|
||||
@@ -217,6 +224,7 @@ ENTITY_FUNCS: dict[
|
||||
"friends": _run_friends,
|
||||
"groups": _run_groups,
|
||||
"voice_calls": _run_voice_calls,
|
||||
"wa_voice_calls": _run_wa_voice_calls,
|
||||
"phone_calls": _run_phone_calls,
|
||||
"sms": _run_sms,
|
||||
"messages": _run_messages,
|
||||
|
||||
Reference in New Issue
Block a user