connection update

This commit is contained in:
Basilosaurusrex
2026-01-20 15:18:42 +01:00
parent 0012a10249
commit dbeaa5006f
3 changed files with 4 additions and 16 deletions

View File

@@ -99,9 +99,9 @@ export const AccountsPage = () => {
updatePayload.account_platform_account_id = parsedData.sellerId;
}
// Shop-Name und account_sells können auch leer sein (optional)
// Shop-Name kann auch leer sein (optional)
updatePayload.account_shop_name = parsedData.shopName || null;
updatePayload.account_sells = parsedData.stats?.itemsSold ?? null;
// account_sells existiert nicht im Schema - wurde entfernt
// #region agent log
fetch('http://127.0.0.1:7242/ingest/246fe132-ecc5-435f-bd9c-fe5e8e26089d',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'AccountsPage.jsx:93',message:'handleRefreshAccount: update payload',data:{payload:updatePayload},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'A'})}).catch(()=>{});

View File

@@ -200,8 +200,7 @@ export async function createManagedAccount(authUserId, accountData) {
account_platform_account_id,
account_shop_name: accountData.account_shop_name || null,
account_url: accountData.account_url || null,
account_sells: accountData.account_sells ?? null,
account_managed: true, // Immer true für über die UI erstellte Accounts
// account_sells und account_managed existieren nicht im Schema - wurden entfernt
};
// #region agent log
fetch('http://127.0.0.1:7242/ingest/246fe132-ecc5-435f-bd9c-fe5e8e26089d',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'accountsService.js:72',message:'createManagedAccount: payload before Appwrite',data:{account_sells:payload.account_sells,accountData_account_sells:accountData.account_sells},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'E'})}).catch(()=>{});