Skip to content

Commit

Permalink
Merge pull request #727 from bcgov/ricander
Browse files Browse the repository at this point in the history
Removing assignment of parent platform type to sub platform type. Onl…
  • Loading branch information
ychung-mot authored Oct 21, 2024
2 parents 729140a + 3be86f2 commit 2517c1b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/StrDss.Data/Repositories/OrganizationRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,6 @@ public async Task<DssOrganization> CreatePlatformSubAsync(PlatformSubCreateDto d
entity.OrganizationCd = dto.OrganizationCd.ToUpperInvariant();
entity.OrganizationType = OrganizationTypes.Platform;

//Per acceptance criteria fo DSS-223. set subsidary platform type to parent platform type on create
var parentOrg = await GetPlatform(dto.ManagingOrganizationId);
entity.PlatformType = parentOrg.PlatformType;

await _dbSet.AddAsync(entity);

return entity;
Expand Down

0 comments on commit 2517c1b

Please sign in to comment.