From 615d8fe69d5566bff213a498f8b2eaafbd7c032e Mon Sep 17 00:00:00 2001 From: ht Date: Sun, 6 Sep 2026 17:26:35 +0300 Subject: [PATCH] validate delivery review metadata --- src/components/tools/DeliveryQueue.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tools/DeliveryQueue.jsx b/src/components/tools/DeliveryQueue.jsx index cdf98d6..2da9643 100644 --- a/src/components/tools/DeliveryQueue.jsx +++ b/src/components/tools/DeliveryQueue.jsx @@ -13,7 +13,7 @@ function Queue({weekly}){ const load=async()=>{ const data=await accountRequest(endpoint); const received=requireArray(data,'deliveries'); - const rows=received.filter(row=>row && typeof row==='object' && typeof row.id==='string' && row.id.trim() && typeof row.state==='string' && (row.subject == null || typeof row.subject==='string') && (row.to == null || ['string','number'].includes(typeof row.to)) && (row.error == null || typeof row.error==='string')); + const rows=received.filter(row=>row && typeof row==='object' && typeof row.id==='string' && row.id.trim() && typeof row.state==='string' && (row.subject == null || typeof row.subject==='string') && (row.to == null || ['string','number'].includes(typeof row.to)) && (row.error == null || typeof row.error==='string') && (row.providerId == null || typeof row.providerId==='string') && (row.review == null || (typeof row.review==='object' && typeof row.review.actor==='string' && typeof row.review.note==='string' && Number.isFinite(Date.parse(row.review.at))))); if(rows.length!==received.length)throw new Error('Sunucu gönderim kayıtlarından birini geçersiz döndürdü. Liste yenilenemedi.'); if(alive.current)setRows(rows); };