We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0be5e1 commit 8af64b8Copy full SHA for 8af64b8
1 file changed
src/controllers/multi-tenancy/MultiTenancyController.ts
@@ -643,8 +643,7 @@ export class MultiTenancyController extends Controller {
643
@Delete('/connections/:connectionId/:tenantId')
644
public async deleteConnectionById(@Path('tenantId') tenantId: string, @Path('connectionId') connectionId: RecordId) {
645
try {
646
- let connectionRecord
647
- await this.agent.modules.tenants.withTenantAgent({ tenantId }, async (tenantAgent) => {
+ const connectionRecord = await this.agent.modules.tenants.withTenantAgent({ tenantId }, async (tenantAgent) => {
648
const connection = await tenantAgent.connections.deleteById(connectionId)
649
return JsonTransformer.toJSON(connection)
650
})
0 commit comments