Question:
So , I am making a website , wherein I have a Profiles collection , basically whenever the status of the member is changed from “PENDING” to “APPROVED” , I want a single profile to be added in the profiles collection for that specific member .
I tried to implement this using , wixMembers_OnMemberUpdated function , which
1)** runs multiple times**
2) and ends up adding multiple profiles for that specific member
To counter this , I tried adding an afterUpdate hook on the members collection , but it seems as if , when the status is MANUALLY changed to approved , after update hook is not executed.
Product:
Wix Editor, Wix Studio Editor