medusajs / medusa

Building blocks for digital commerce
https://medusajs.com
MIT License
24.86k stars 2.48k forks source link

Duplicated media using `medusa-plugin-contentful` #7235

Open vavilondev opened 5 months ago

vavilondev commented 5 months ago

Bug report

We are using medusa-plugin-contentful and

Describe the bug

We did common flow with adding media files / publishing content and now faced that we have 10k media files duplicates. What can cause an issue?

System information

Medusa version (including plugins):

"@medusajs/medusa": "1.20.3", "medusa-plugin-contentful": "^1.2.11",

Node.js version: 17.0.8 Database: Operating system: MacOS Browser (if relevant): Chrome

Steps to reproduce the behavior

Expected behavior

Do not create duplicates

Screenshots

Screenshot 2024-05-04 at 02 53 43

If applicable, add screenshots to help explain your problem

Code snippets

If applicable, add code samples to help explain your problem

Additional context

Add any other context about the problem here

vavilondev commented 5 months ago

Is it possible that we have so many media files because of some magic connection between media and this quantity: ?

Screenshot 2024-05-04 at 03 12 18