Skip to content

Commit

Permalink
Update API of delete connection
Browse files Browse the repository at this point in the history
Signed-off-by: Sagar Khole <sagar.khole@ayanworks.com>
  • Loading branch information
sagarkhole4 committed Jan 28, 2025
1 parent a0be5e1 commit 39a53f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/controllers/multi-tenancy/MultiTenancyController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,7 @@ export class MultiTenancyController extends Controller {
@Delete('/connections/:connectionId/:tenantId')
public async deleteConnectionById(@Path('tenantId') tenantId: string, @Path('connectionId') connectionId: RecordId) {
try {
let connectionRecord
await this.agent.modules.tenants.withTenantAgent({ tenantId }, async (tenantAgent) => {
const connectionRecord = await this.agent.modules.tenants.withTenantAgent({ tenantId }, async (tenantAgent) => {
const connection = await tenantAgent.connections.deleteById(connectionId)
return JsonTransformer.toJSON(connection)
})
Expand Down

0 comments on commit 39a53f5

Please sign in to comment.