AmericanWhitewater / wh2o-vue

Interactive map and guide for whitewater rivers in North America
https://wh2o-vue.netlify.app/
9 stars 1 forks source link

fix updatePost service to work for comments like it used to #324

Closed ngottlieb closed 3 years ago

ngottlieb commented 3 years ago

the photo upload changes to updatePost ended up breaking comments, which use that code without photos (since COMMENT is another type of post).

This fixes that, resolves https://github.com/AmericanWhitewater/wh2o/issues/2141

Ideally these should be entirely separate chunks of code but I'm not sure exactly how photo upload is going to evolve right now and these changes allow both, as they are currently, to continue working, so despite it being a little confusing I thought this would be easier than a bigger refactor with unknown future requirements.