Filtering a repeater from badges

I have a repeater that is connected to the public data collection. The repeater gets populated with all of the site members. I am needing to filter that repeater with only the members that have a specific badge.

let filtermem = " "
    wixData.query("Members/Badges")
        .eq("_id", "296327ae-6b22-4012-9297-c0982aa49872")
        .find()
        .then((elitemem) => {
        filtermem = elitemem.items[0].members
        })

        $w("#dataset1").setFilter(wixData.filter()
                .eq("_id", filtermem)
            );

I found the solution to this problem if anyone is curious.

wixData.query("Members/Badges")
        .eq("_id", "296327ae-6b22-4012-9297-c0982aa49872")
        .find()
        .then((Badgesresults) => {
            badgemem = Badgesresults.items[0].members

            wixData.query("Members/PublicData")
                .hasSome("_id", badgemem)
                .find()
                .then((results) => {
                    let pubmemid = results.items
                    

           $w("#repeater9").data = pubmemid;
              
           $w("#repeater9").onItemReady(($w, itemData, index) => {
                      


$w('#positiondropdown').options = itemData
$w('#image3').src = itemData.profilePhoto
$w('#text18').text = itemData.nickname
$w('#text28').text = itemData.customfields_contact_position
 if (itemData.coverPhoto === undefined) {
 $w('#image6').src = "https://static.wixstatic.com/media/c97477_226c7c7c4b0847ab8b1e7552a1706860~mv2.jpg"
} else {
       $w('#image6').src = "https://static.wixstatic.com/media/" + itemData.coverPhoto
                        }

                    })