Skip to content

Commit 2e2ceae

Browse files
authored
Merge pull request #41 from credebl/delete-tenant
fix: delete multi-tenancy by tenant Id
2 parents 4aa7798 + b1efc2e commit 2e2ceae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controllers/multi-tenancy/MultiTenancyController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ export class MultiTenancyController extends Controller {
11601160

11611161
@Get(":tenantId")
11621162
public async getTenantById(
1163-
@Query("tenantId") tenantId: string,
1163+
@Path("tenantId") tenantId: string,
11641164
@Res() notFoundError: TsoaResponse<404, { reason: string }>,
11651165
@Res() internalServerError: TsoaResponse<500, { message: string }>
11661166
) {
@@ -1202,7 +1202,7 @@ export class MultiTenancyController extends Controller {
12021202

12031203
@Delete(":tenantId")
12041204
public async deleteTenantById(
1205-
@Query("tenantId") tenantId: string,
1205+
@Path("tenantId") tenantId: string,
12061206
@Res() notFoundError: TsoaResponse<404, { reason: string }>,
12071207
@Res() internalServerError: TsoaResponse<500, { message: string }>
12081208
) {

0 commit comments

Comments
 (0)