Skip to content

Commit

Permalink
Merge pull request #513 from chaynHQ/develop
Browse files Browse the repository at this point in the history
Merge Develop onto Main
  • Loading branch information
eleanorreem authored Jul 8, 2024
2 parents f32b31e + 52362ef commit 6e86e5e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

### Why did you make the changes?

### Did you run tests?

<!---IMPORTANT NOTE ABOUT RUNNING TESTS: ->
- Some tests may require multiple runs before success.
- Some test failures may not be due to your contribution and can be ignored.
- If tests fail without resolution, please let us know here.
- Directions for running tests are in the README.md
<!--- PR CHECKLIST: PLEASE REMOVE BEFORE SUBMITTING —>
Before submitting, check that you have completed the following tasks:
- [ ] Answered the questions above.
Expand Down
11 changes: 9 additions & 2 deletions src/partner-admin/partner-admin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,18 @@ export class PartnerAdminService {
if (!partnerAdminResponse) {
throw new HttpException('Partner admin does not exist', HttpStatus.BAD_REQUEST);
}
return this.partnerAdminRepository
const updatedPartnerAdminResponse = await this.partnerAdminRepository
.createQueryBuilder('partner_admin')
.update(PartnerAdminEntity)
.set({ active: updatePartnerAdminDto.active })
.where('partnerAdminId = :partnerAdminId', { partnerAdminId })
.returning('*');
.returning('*')
.execute();

if (updatedPartnerAdminResponse.raw.length > 0) {
return updatedPartnerAdminResponse.raw[0];
} else {
throw new Error('Failed to update partner admin');
}
}
}

0 comments on commit 6e86e5e

Please sign in to comment.