Skip to content

Commit

Permalink
chore: add code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eteubert committed Dec 29, 2024
1 parent 7d4b2d6 commit 1608f2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/lib/publisher/wordpress/episode.ex
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ defmodule Publisher.WordPress.Episode do
body: resp.body
)

# TODO: if upload.status == 500, there may be a helpful error message in upload.body["data"]["error"]
# TODO: possible fix is multipart upload

# TODO: handle that upload.body["generated_slug"] does not exist, for example when the body is not actually data...
if upload.body["generated_slug"] != params["slug"] do
Logger.info(
"generated_slug (#{upload.body["generated_slug"]} and slug (#{params["slug"]}) parameter are different"
Expand Down

0 comments on commit 1608f2e

Please sign in to comment.