Ever since upgrading Civi in May to 4.7.19 (currently running 4.7.22), membership end dates are not getting updated for monthly autorenewing memberships. The completed contribution record is no longer being attached to the membership (thus no update to the end date). Earlier contribution records which worked have the membership type in the amount_level field in the civicrm_contribution table. New ones are NULL :/
Using iATS and drupal.