site contents
This commit is contained in:
@@ -63,6 +63,14 @@ class MembersProducts(db.Model):
|
||||
return None
|
||||
return member_product
|
||||
|
||||
@classmethod
|
||||
def get_member_product_by_subscription_uid(cls, subscription_uid):
|
||||
member_product = cls.query.filter_by(subscription_uid=str(subscription_uid)).all()
|
||||
if not member_product:
|
||||
return None
|
||||
return member_product
|
||||
|
||||
|
||||
@classmethod
|
||||
def create_subscription(cls, member_id ,product_id,status,internal_url):
|
||||
# Create the subscription
|
||||
|
||||
Reference in New Issue
Block a user