PLEASE can someone help me fix this problem, I have been trying to assign a specific role to users with this code but it is not working? if anyone has a better way of doing this please help me out
const roleInDB = new Moralis.Query(Moralis.Role);
roleInDB.equalTo(“name”, role);
const result = await roleInDB.first();
possible role values: collector,promoter,advisor