feat: vérification image existante sur Shopify avant upload (statut 'Déjà sur Shopify')

This commit is contained in:
2026-06-11 13:35:47 +02:00
parent 4df074f02d
commit 725a7508b0
4 changed files with 30 additions and 2 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ export function useImages() {
})
const data = await res.json()
if (!res.ok) throw new Error(data.error || `HTTP ${res.status}`)
update(id, { status: 'uploaded', uploadedUrl: data.url })
update(id, { status: data.skipped ? 'skipped' : 'uploaded', uploadedUrl: data.url })
} catch (err) {
update(id, { status: 'error', error: `Upload : ${(err as Error).message}` })
}