Fix RecurringTransactionsResponse sending "null" in finish field

This commit is contained in:
William Brawner 2022-05-28 21:38:01 -06:00
parent 3d7a4d9772
commit cee28c0e1e

View file

@ -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,