Fix RecurringTransactionsResponse sending "null" in finish
field
This commit is contained in:
parent
3d7a4d9772
commit
cee28c0e1e
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue