from stock.models.stock_model import Stock


def get_quantity(_id):
    return Stock.objects(product_id=_id).first()


def insert_product(body: dict):
    product = Stock(**body)
    product.save()
    return str(product.id)

48e7cbb2e48fdb647eab0cda48c5ac2acc1d5623
<mask token>

<mask token>


def get_quantity(_id):
    return Stock.objects(product_id=_id).first()


<mask token>

<mask token>


def get_quantity(_id):
    return Stock.objects(product_id=_id).first()


def insert_product(body: dict):
    product = Stock(**body)
    product.save()
    return str(product.id)

from stock.models.stock_model import Stock


def get_quantity(_id):
    return Stock.objects(product_id=_id).first()


def insert_product(body: dict):
    product = Stock(**body)
    product.save()
    return str(product.id)
