From c900c7093f0ec51d80b342b7c4642d4f4abf7e71 Mon Sep 17 00:00:00 2001 From: Peter Vacho Date: Sun, 5 Jan 2025 16:14:53 +0100 Subject: [PATCH] fix: Fix typo in func name createCategory -> updateCategory --- .../com/p_vacho/neat_calendar/api/services/CategoryService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/p_vacho/neat_calendar/api/services/CategoryService.kt b/app/src/main/java/com/p_vacho/neat_calendar/api/services/CategoryService.kt index 4dee324..780384e 100644 --- a/app/src/main/java/com/p_vacho/neat_calendar/api/services/CategoryService.kt +++ b/app/src/main/java/com/p_vacho/neat_calendar/api/services/CategoryService.kt @@ -24,7 +24,7 @@ interface CategoryService { suspend fun createCategory(@Body categoryData: CategoryRequest): CategoryResponse @PATCH("/categories/{category_id}") - suspend fun createCategory(@Path("category_id") categoryId: String, @Body categoryData: PartialCategoryRequest): CategoryResponse + suspend fun updateCategory(@Path("category_id") categoryId: String, @Body categoryData: PartialCategoryRequest): CategoryResponse @DELETE("/categories/{category_id}") suspend fun deleteCategory(@Path("category_id") categoryId: String): Unit