wixMembers_onMemberUpdated() called twice

I defined a Members hook in src/backend/events.js. This works perfectly, except the function is often called twice

export function wixMembers_onMemberUpdated(event) {
        console.log("onMemberUpdated:", event.entity.loginEmail);
}

Is this a bug in the event API? Is there a way to respond only to the first call after a Member is updated?

if I’m not mistaken the API works with the members database and contacts database, so several calls are made - it’s something to do with this…