Hook not updating collection - no errors

I also tried before insert - the console logs showing that the member field is true, but it doesn’t register in the collection. I must be missing something basic - thank you in advance for any insights.

import wixData from ‘wix-data’;

export function EventReg_beforeInsert(item, context) {
let userEmail = item.email;
console.log(userEmail);
wixData.query(“Members”).eq(“email”, userEmail).find()
.then((results) => {
if (results.items[0].ismgbMember === true ) {
item.member = true ;
console.log(“member set to true”);
console.log(item);
}
})
return item;
}