Shopify Flow - Excluding gift cards

Hi,

We’ve got a Flow set-up to remove out of stock products excluding gift cards.

This was previously working for a few months, but has now stopped, and gift cards have disappeared from the website.

What is the easiest solution to fix this? Need gift cards excluded from being unpublished and all products without inventory unpublished when they sell.

The previously working conditions are:

Variant inventory quantity changed

check if no variants positive stock (if none product = gift card and inventory equal to 1)

Unpublish on all publications

Hi there, may I ask if you tried to tag all your gift cards with a specific tag to differentiate them from other products?