chinchang / web-maker

A blazing fast & offline frontend playground
https://webmaker.app
MIT License
2.54k stars 314 forks source link

try saving with refreshed ids when importing to DB fails #567

Closed chinchang closed 3 weeks ago

chinchang commented 3 weeks ago

lets say you have an exported list of creations. You have those creations already synced to a cloud account. Now if you go to a new account and try to import that exported items, it will fail to sync. Because exported items have their own ID and they already exist in the db with that ID...so cant save them again in the DB with same ID.

So now, if syncing fails here, we refresh all the IDs to new one and then try saving.