Skip to content

Commit

Permalink
fix: GetStrRequirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ychung-mot committed Sep 23, 2024
1 parent bb8b6ac commit 2cca51b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions database/ddl/STR_DSS_Views_Sprint_14.sql
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ CREATE OR REPLACE VIEW dss_rental_listing_vw AS select drl.rental_listing_id
, drl.effective_host_nm
, drl.is_changed_business_licence
, drl.lg_transfer_dtm
, lgs.is_str_prohibited
FROM dss_rental_listing drl
join dss_organization org on org.organization_id=drl.offering_organization_id
LEFT JOIN dss_listing_status_type dlst on drl.listing_status_type=dlst.listing_status_type
Expand Down
2 changes: 1 addition & 1 deletion server/StrDss.Data/Repositories/OrganizationRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public async Task<OrganizationDto> GetOrganizationByOrgCdAsync(string orgCd)

var strRequirement = await _dbContext.DssOrganizations
.FromSqlRaw(@"
SELECT organization_nm, is_principal_residence_required, is_business_licence_required
SELECT organization_nm, is_principal_residence_required, is_business_licence_required, is_str_prohibited
FROM dss_organization
WHERE organization_id = dss_containing_organization_id({0})", point)

Expand Down

0 comments on commit 2cca51b

Please sign in to comment.