Skip to content

Commit 8af64b8

Browse files
committed
Update API of delete connection
1 parent a0be5e1 commit 8af64b8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/controllers/multi-tenancy/MultiTenancyController.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,7 @@ export class MultiTenancyController extends Controller {
643643
@Delete('/connections/:connectionId/:tenantId')
644644
public async deleteConnectionById(@Path('tenantId') tenantId: string, @Path('connectionId') connectionId: RecordId) {
645645
try {
646-
let connectionRecord
647-
await this.agent.modules.tenants.withTenantAgent({ tenantId }, async (tenantAgent) => {
646+
const connectionRecord = await this.agent.modules.tenants.withTenantAgent({ tenantId }, async (tenantAgent) => {
648647
const connection = await tenantAgent.connections.deleteById(connectionId)
649648
return JsonTransformer.toJSON(connection)
650649
})

0 commit comments

Comments
 (0)