backend
    Preparing search index...

    Function ensureDefaultRolesExist

    • Returns Promise<void>

      This function attempts to create the default roles if they do not already exist. It uses the createNewRoleOrAddPermissions method, which will create the role if it doesn't exist or simply ensure it exists without modifying permissions if it does. Any errors encountered during this process are logged to the console.