Skip to content

Commit

Permalink
Merge pull request #736 from bcgov/yj
Browse files Browse the repository at this point in the history
chore: isStrProhibited
  • Loading branch information
ychung-mot authored Oct 23, 2024
2 parents ae89eb3 + 4c0a181 commit 8c5be53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/StrDss.Data/Repositories/OrganizationRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ public async Task<OrganizationDto> GetOrganizationByOrgCdAsync(string orgCd)

var strRequirement = await _dbContext.DssOrganizations
.FromSqlRaw(@"
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)
SELECT p.organization_nm, c.is_principal_residence_required, c.is_business_licence_required, p.is_str_prohibited
FROM dss_organization c, dss_organization p
WHERE p.organization_id = c.managing_organization_id and c.organization_id = dss_containing_organization_id({0})", point)

.Select(o => new StrRequirementsDto
{
Expand Down

0 comments on commit 8c5be53

Please sign in to comment.