Skip to content

Commit fb92f33

Browse files
authored
Merge pull request #612 from bcgov/yj
fix: unlink biz lic
2 parents 9f487f6 + 3de2b29 commit fb92f33

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

postgres/values-dev.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ primary:
77
containerSecurityContext:
88
enabled: false
99
persistence:
10-
size: 400Mi
10+
size: 800Mi
1111
resources:
1212
limits:
1313
cpu: 150m
14-
memory: 300Mi
14+
memory: 1Gi
1515
requests:
1616
cpu: 50m
17-
memory: 250Mi
17+
memory: 700Mi
1818
readReplicas:
1919
persistence:
20-
size: 400Mi
20+
size: 800Mi
2121
nameOverride: strdssdev
2222
fullnameOverride: strdssdev
2323
annotations:

postgres/values-test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ primary:
1111
resources:
1212
limits:
1313
cpu: 150m
14-
memory: 300Mi
14+
memory: 1Gi
1515
requests:
1616
cpu: 50m
17-
memory: 250Mi
17+
memory: 700Mi
1818
readReplicas:
1919
persistence:
20-
size: 400Mi
20+
size: 800Mi
2121
nameOverride: strdsstest
2222
fullnameOverride: strdsstest
2323
annotations:

server/StrDss.Data/Repositories/RentalListingRepository.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,9 +766,10 @@ public async Task LinkBizLicence(long rentalListingId, long licenceId)
766766
public async Task UnLinkBizLicence(long rentalListingId)
767767
{
768768
//assume it exists - validated already
769-
var listing = await _dbContext.DssRentalListings.FirstAsync(x => x.RentalListingId == rentalListingId);
769+
var listing = await _dbContext.DssRentalListings
770+
.FirstAsync(x => x.RentalListingId == rentalListingId);
770771

771-
if (listing.GoverningBusinessLicenceId != null)
772+
if (listing.GoverningBusinessLicenceId == null)
772773
return;
773774

774775
listing.GoverningBusinessLicenceId = null;

0 commit comments

Comments
 (0)