From 843833a6bcdf161d7c98d83d0fe4014a5bfbf6a3 Mon Sep 17 00:00:00 2001 From: Trey t Date: Fri, 14 Nov 2025 09:56:35 -0600 Subject: [PATCH] Fix TaskCompletionCreateRequest to remove completion_date field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The completion_date field is automatically set by the backend (auto_now_add) and should not be sent in the create request. Removed this field from TaskCompletionCreateRequest to match the API expectations. Backend TaskCompletion model sets completion_date automatically, so clients should not provide it when creating a completion. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../kotlin/com/example/mycrib/models/TaskCompletion.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/com/example/mycrib/models/TaskCompletion.kt b/composeApp/src/commonMain/kotlin/com/example/mycrib/models/TaskCompletion.kt index fd79829..0eab76a 100644 --- a/composeApp/src/commonMain/kotlin/com/example/mycrib/models/TaskCompletion.kt +++ b/composeApp/src/commonMain/kotlin/com/example/mycrib/models/TaskCompletion.kt @@ -42,10 +42,10 @@ data class TaskCompletionCreateRequest( @SerialName("completed_by_phone") val completedByPhone: String? = null, @SerialName("completed_by_email") val completedByEmail: String? = null, @SerialName("company_name") val companyName: String? = null, - @SerialName("completion_date") val completionDate: String, @SerialName("actual_cost") val actualCost: String? = null, val notes: String? = null, val rating: Int? = null + // Note: completion_date is set automatically by the backend ) @Serializable