filecoin-station / spark-api

💥 SPARK API
https://github.com/filecoin-station/spark
Other
3 stars 1 forks source link

fix: add `miner_id` to `retrievable_deals` PK #319

Closed bajtos closed 3 months ago

bajtos commented 3 months ago

Before this change, we used cid as the primary key. As a result, we would have only one record for each CID.

bajtos commented 3 months ago

I discovered this problem while troubleshooting https://filecoinproject.slack.com/archives/C075188L1R9

bajtos commented 3 months ago

Very important fix 🙏 Could we please secure this through a regression test?

Great idea! 💪🏻

bajtos commented 3 months ago

Test added in 4dc65d1

@juliangruber LGTY now?