openaddresses / batch

OpenAddresses/Machine based AWS Batch based ETL Processing
https://batch.openaddresses.io/
MIT License
6 stars 5 forks source link

Creating a collection ignores next id in sequence #333

Open iandees opened 1 year ago

iandees commented 1 year ago

The collections table in the database had multiple collections with the same id, and the collections_id_seq was at 2. I manually adjusted the IDs for the collections that had matching IDs, but it indicates that collection creation is not using the correct ID sequence.

https://github.com/openaddresses/batch/blob/master/api/routes/collection.js#L112-L115

This is likely the cause for the global and ca collections having broken links on the website.