fixing issue where completed pending_ops were not being deleted from domain and user docs in mongo