@@ -1600,15 +1600,18 @@ class OrganizationRepository {
16001600 const result = { rows, count, limit, offset }
16011601
16021602 // Cache the result
1603- options . log . info ( {
1604- cacheKey,
1605- segmentId,
1606- rowCount : rows . length ,
1607- totalCount : count ,
1608- jsonSizeBytes : JSON . stringify ( result ) . length ,
1609- limit,
1610- offset,
1611- } , `Caching organizations advanced query result: ${ cacheKey } ` )
1603+ options . log . info (
1604+ {
1605+ cacheKey,
1606+ segmentId,
1607+ rowCount : rows . length ,
1608+ totalCount : count ,
1609+ jsonSizeBytes : JSON . stringify ( result ) . length ,
1610+ limit,
1611+ offset,
1612+ } ,
1613+ `Caching organizations advanced query result: ${ cacheKey } ` ,
1614+ )
16121615 await cache . set ( cacheKey , result , 21600 ) // 6 hours TTL
16131616
16141617 return result
@@ -1672,11 +1675,14 @@ class OrganizationRepository {
16721675 options : IRepositoryOptions ,
16731676 ) : Promise < void > {
16741677 OrganizationRepository . activeBackgroundRefreshes ++
1675- options . log . info ( {
1676- cacheKey,
1677- segmentId : params . segmentId ,
1678- activeBackgroundRefreshes : OrganizationRepository . activeBackgroundRefreshes ,
1679- } , `Refreshing organizations advanced query cache in background: ${ cacheKey } ` )
1678+ options . log . info (
1679+ {
1680+ cacheKey,
1681+ segmentId : params . segmentId ,
1682+ activeBackgroundRefreshes : OrganizationRepository . activeBackgroundRefreshes ,
1683+ } ,
1684+ `Refreshing organizations advanced query cache in background: ${ cacheKey } ` ,
1685+ )
16801686 try {
16811687 await this . executeQuery ( cache , cacheKey , params , options )
16821688 } catch ( error ) {
0 commit comments