D367PKGCUNOUEO7QBPFSP3L2XOYXTRALYL7RMPY7XFO6UHQNFPCAC
JAAJEH57DRFXCZGAPOQLI4MN7N57OG52E7TQCC4FFJSOPDX4M65QC
GQ2TJSGOGNH4PKDNN5ZWITLOE6YNAWO6TCBCQV4SN7ZRWEB6IZ5AC
E4HFJ4L4PAGV7R7EXVG2B2CWDGGW7XWU4D37VURZ66HZ3ILHCFUAC
when type in ('capsule', 'tea', 'gummy', 'mint', 'chocolate', 'baked') then json_agg(variant_id)
when type in ('capsule', 'tea', 'gummy', 'mint', 'chocolate', 'baked') then json_agg(distinct variant_id)