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 description: String?,
val frequency: String, val frequency: String,
val start: String, val start: String,
val finish: String? = null, val finish: String?,
val amount: Long?, val amount: Long?,
val expense: Boolean?, val expense: Boolean?,
val budgetId: String, val budgetId: String,
@ -37,7 +37,7 @@ fun RecurringTransaction.asResponse(): RecurringTransactionResponse = RecurringT
description = description, description = description,
frequency = frequency.toString(), frequency = frequency.toString(),
start = start.toString(), start = start.toString(),
finish = finish.toString(), finish = finish?.toString(),
amount = amount, amount = amount,
expense = expense, expense = expense,
budgetId = budgetId, budgetId = budgetId,