@@ -125,9 +125,7 @@ function GetLlmoOpportunityUsageCommand(context) {
125125 } ) ;
126126
127127 const { dataAccess, log } = context ;
128- const {
129- Site, Organization, Opportunity, Entitlement,
130- } = dataAccess ;
128+ const { Site, Organization, Opportunity } = dataAccess ;
131129
132130 const countLlmoOpportunities = async ( siteId ) => {
133131 const opportunities = await Opportunity . allBySiteId ( siteId ) ;
@@ -193,18 +191,6 @@ function GetLlmoOpportunityUsageCommand(context) {
193191 log . info ( `Skipping excluded IMS org: ${ imsOrgId } for site: ${ site . getBaseURL ( ) } ` ) ;
194192 return null ;
195193 }
196-
197- // Get tier from entitlements
198- let tier = 'N/A' ;
199- if ( organization ) {
200- const entitlements = await Entitlement . allByOrganizationId ( organization . getId ( ) ) ;
201- if ( entitlements && entitlements . length > 0 ) {
202- const llmoEntitlement = entitlements . find ( ( e ) => e . getProductCode ( ) === 'LLMO' ) ;
203- if ( llmoEntitlement ) {
204- tier = llmoEntitlement . getTier ( ) ;
205- }
206- }
207- }
208194 const containsGeo403 = queryIndex ?. data ?. some ( ( item ) => item . path . includes ( 'agentic-traffic/agentictraffic-errors-403' ) ) || false ;
209195 const containsGeo404 = queryIndex ?. data ?. some ( ( item ) => item . path . includes ( 'agentic-traffic/agentictraffic-errors-404' ) ) || false ;
210196 const containsGeo5xx = queryIndex ?. data ?. some ( ( item ) => item . path . includes ( 'agentic-traffic/agentictraffic-errors-5xx' ) ) || false ;
@@ -234,7 +220,6 @@ function GetLlmoOpportunityUsageCommand(context) {
234220 organizationId : site . getOrganizationId ( ) ,
235221 imsOrgName,
236222 imsOrgId,
237- tier,
238223 totalOpportunities,
239224 containsGeo403,
240225 containsGeo404,
@@ -268,7 +253,6 @@ function GetLlmoOpportunityUsageCommand(context) {
268253 { id : 'organizationId' , title : 'Organization ID' } ,
269254 { id : 'imsOrgName' , title : 'IMS Org Name' } ,
270255 { id : 'imsOrgId' , title : 'IMS Org ID' } ,
271- { id : 'tier' , title : 'Tier' } ,
272256 { id : 'containsGeo403' , title : 'Has Tech GEO 403' } ,
273257 { id : 'containsGeo404' , title : 'Has Tech GEO 404' } ,
274258 { id : 'containsGeo5xx' , title : 'Has Tech GEO 5xx' } ,
0 commit comments