Fix: Fjernet LIMIT fra vTiger sync for at hente ALLE kunder og kontakter
This commit is contained in:
parent
e8be92d187
commit
187b72238d
@ -36,8 +36,8 @@ async def sync_from_vtiger() -> Dict[str, Any]:
|
||||
|
||||
vtiger = get_vtiger_service()
|
||||
|
||||
# Query vTiger for all accounts with CVR or name
|
||||
query = "SELECT id, accountname, email1, siccode, cf_accounts_cvr, website, bill_city, bill_code, bill_country FROM Accounts LIMIT 1000;"
|
||||
# Query vTiger for all accounts with CVR or name (no limit to get all)
|
||||
query = "SELECT id, accountname, email1, siccode, cf_accounts_cvr, website, bill_city, bill_code, bill_country FROM Accounts;"
|
||||
|
||||
accounts = await vtiger.query(query)
|
||||
logger.info(f"📥 Fetched {len(accounts)} accounts from vTiger")
|
||||
@ -169,8 +169,8 @@ async def sync_vtiger_contacts() -> Dict[str, Any]:
|
||||
|
||||
vtiger = get_vtiger_service()
|
||||
|
||||
# Query vTiger for contacts
|
||||
query = "SELECT id, firstname, lastname, email, phone, mobile, title, department, account_id FROM Contacts LIMIT 1000;"
|
||||
# Query vTiger for all contacts (no limit)
|
||||
query = "SELECT id, firstname, lastname, email, phone, mobile, title, department, account_id FROM Contacts;"
|
||||
|
||||
contacts = await vtiger.query(query)
|
||||
logger.info(f"📥 Fetched {len(contacts)} contacts from vTiger")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user