From 52870aeb0df520b1b703229b03d192aae81b957f Mon Sep 17 00:00:00 2001 From: Mathis Date: Tue, 8 Oct 2024 13:42:54 +0200 Subject: [PATCH] Fix author parameter name in deleteAuthor method Changed the parameter name from 'machineId' to 'author' in the deleteAuthor method to reflect the actual parameter expected by the route. This improves code clarity and ensures the method receives the correct data. --- apps/backend/src/app/authors/authors.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/app/authors/authors.controller.ts b/apps/backend/src/app/authors/authors.controller.ts index 421d298..8474c74 100644 --- a/apps/backend/src/app/authors/authors.controller.ts +++ b/apps/backend/src/app/authors/authors.controller.ts @@ -29,7 +29,7 @@ export class AuthorsController { @UseGuards(AdminGuard) @Delete(":autor") - async deleteAuthor(@Param("machineId") machineId: string) {} + async deleteAuthor(@Param("author") author: string) {} //TODO Patch