How to limit product availability based on inventory in the wholesale channel?

Is there a way to make the product unavailable to the Wholesale channel once your inventory gets down to a certain level? Shopify support told me this could be done through the Shopify flow app but this only lets me hide it on the online store and not on the wholesale channel.