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 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,
|
||||||
|
|
Loading…
Reference in a new issue