mysociety / popit-api

DEPRECATED - Development on PopIt has stopped and it is no longer being maintained
https://goo.gl/Vvej4Q
Other
17 stars 3 forks source link

delete an object's memberships when it is deleted #56

Closed struan closed 10 years ago

struan commented 10 years ago

use the post middleware hook to remove memberships that an object has when it's removed and then fire an event on that object in case we need to know ( which we do for the tests to work ). In order for this to work we need to do the membership deleting via async so we know when all the membership remove calls have completed

chrismytton commented 10 years ago

Looks good! :+1: :rocket: