File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed
server/StrDss.Data/Repositories Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 3
3
role : f4a30d-prod
4
4
subPath : strdss-prod
5
5
env :
6
- ' Serilog__MinimumLevel__Override__StrDss__Common__StrDssLogger ' : ' Information'
6
+ ' Serilog__MinimumLevel__Override__StrDss ' : ' Information'
7
7
' ASPNETCORE_ENVIRONMENT ' : ' Production'
8
8
' ENV_NAME ' : ' prod'
9
9
' APP_BASE_URL ' : ' https://strdata.gov.bc.ca'
Original file line number Diff line number Diff line change 3
3
role : f4a30d-nonprod
4
4
subPath : strdss-test
5
5
env :
6
- ' Serilog__MinimumLevel__Override__StrDss__Common__StrDssLogger ' : ' Information'
6
+ ' Serilog__MinimumLevel__Override__StrDss ' : ' Information'
7
7
' ASPNETCORE_ENVIRONMENT ' : ' Test'
8
8
' ENV_NAME ' : ' test'
9
9
' APP_BASE_URL ' : ' https://test.strdata.gov.bc.ca'
Original file line number Diff line number Diff line change 3
3
role : f4a30d-nonprod
4
4
subPath : strdss-uat
5
5
env :
6
- ' Serilog__MinimumLevel__Override__StrDss__Common__StrDssLogger ' : ' Information'
6
+ ' Serilog__MinimumLevel__Override__StrDss ' : ' Information'
7
7
' ASPNETCORE_ENVIRONMENT ' : ' Staging'
8
8
' ENV_NAME ' : ' uat'
9
9
' APP_BASE_URL ' : ' https://uat.strdata.gov.bc.ca'
Original file line number Diff line number Diff line change @@ -240,14 +240,19 @@ await _dbSet.AsNoTracking()
240
240
241
241
stopwatch . Restart ( ) ;
242
242
243
+ var contacts = _mapper . Map < List < RentalListingContactDto > > ( await _dbContext . DssRentalListingContacts
244
+ . AsNoTracking ( )
245
+ . Where ( contact => listings
246
+ . Select ( listing => listing . RentalListingId )
247
+ . Contains ( contact . ContactedThroughRentalListingId ) )
248
+ . ToListAsync ( ) ) ;
249
+
243
250
foreach ( var listing in listings )
244
251
{
245
- await SetExtraProperties ( listing ) ;
246
-
252
+ listing . LastActionDtm = listing . LastActionDtm == null ? null : DateUtils . ConvertUtcToPacificTime ( listing . LastActionDtm . Value ) ;
247
253
listing . Filtered = filteredIdSet . Contains ( listing . RentalListingId ?? 0 ) ;
248
-
254
+ listing . Hosts = contacts . Where ( x => x . ContactedThroughRentalListingId == listing . RentalListingId ) . ToList ( ) ;
249
255
group . NightsBookedYtdQty += listing . NightsBookedYtdQty ?? 0 ;
250
-
251
256
}
252
257
253
258
stopwatch . Stop ( ) ;
You can’t perform that action at this time.
0 commit comments