Convert BaseResource.save to return a promise.

Review Request #11642 — Created June 2, 2021 and updated

david
Review Board
master
reviewboard

This change updates the save machinery for various resources to use
promises and async/await instead of callbacks.

  • Ran js-tests.
  • Manually tested API token creation, comment editing, review request
    field editing, post-commit review request creation, ship-it revocation,
    and file attachment uploading.
Summary
Convert BaseResource.save to return a promise.
Description From Last Updated

Col: 15 'commit' was used before it was defined.

reviewbotreviewbot

Col: 39 Missing semicolon.

reviewbotreviewbot
Loading...