news-catalyst / google-app-scripts

a collection of scripts for tinynews google docs add-ons
https://script.google.com/a/newscatalyst.org/d/1ILURq69o3cYUy6k1n1X6HwxdMfl9xWNhILYuZxgLfeblb3IR15WCMZSj/edit
1 stars 1 forks source link

Bugfix/assets image url #305

Closed jacqui closed 3 years ago

jacqui commented 3 years ago

Relates to https://github.com/news-catalyst/next-tinynewsdemo/issues/738

This PR stores the image url as hosted on assets.tinynewsco.org instead of directly on the s3 bucket domain. I've made it so a check is done for existing images; if the image url is still set to the s3 bucket directly, the image upload process will be triggered and the url updated in hasura. That would only happen the first time the old url is encountered.