From cee28c0e1eba80b92cf2701309241ee6f71d8cd3 Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Sat, 28 May 2022 21:38:01 -0600 Subject: [PATCH] Fix RecurringTransactionsResponse sending "null" in `finish` field --- .../kotlin/com/wbrawner/twigs/RecurringTransactionsApi.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/main/kotlin/com/wbrawner/twigs/RecurringTransactionsApi.kt b/api/src/main/kotlin/com/wbrawner/twigs/RecurringTransactionsApi.kt index 3d89b64..180bd06 100644 --- a/api/src/main/kotlin/com/wbrawner/twigs/RecurringTransactionsApi.kt +++ b/api/src/main/kotlin/com/wbrawner/twigs/RecurringTransactionsApi.kt @@ -23,7 +23,7 @@ data class RecurringTransactionResponse( val description: String?, val frequency: String, val start: String, - val finish: String? = null, + val finish: String?, val amount: Long?, val expense: Boolean?, val budgetId: String, @@ -37,7 +37,7 @@ fun RecurringTransaction.asResponse(): RecurringTransactionResponse = RecurringT description = description, frequency = frequency.toString(), start = start.toString(), - finish = finish.toString(), + finish = finish?.toString(), amount = amount, expense = expense, budgetId = budgetId,