add job invoice

This commit is contained in:
zzdrojewskipaw
2025-11-28 15:11:56 +01:00
parent 437d6d8f42
commit f31176cfc9
3 changed files with 19 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ public class InvoiceSyncService(HttpClient httpClient, BimAIDbContext db, IConfi
public async Task RunAsync()
{
var apiKey = configuration["E5_CRM:ApiKey"];
var apiKey = configuration["TWINPOL_CRM:ApiKey"];
var syncState = db.SyncStates.FirstOrDefault(x => x.Entity == "Invoice") ?? new SyncState { Entity = "Invoice", LastSynced = 0 };
var url = $"https://crm.twinpol.com/REST/index.php?key={apiKey}&action=bimai.export.ecommerce&since=0";