Adding the PaidOff column to the Apps logic
Also had to readd a schema.sql file because sqlc was failing at parsing the migrations directory correctly
This commit is contained in:
@@ -32,6 +32,8 @@ func mapRepoGetExpenseRow(e repo.GetExpenseRow) Expense {
|
||||
Date: e.Expense.ExpDate,
|
||||
Shares: []ExpenseShare{},
|
||||
Payments: []ExpensePayment{},
|
||||
PaidOff: e.Expense.PaidOff,
|
||||
SharesEven: e.Expense.SharesEven,
|
||||
CreationDate: e.Expense.CreationDate,
|
||||
}
|
||||
}
|
||||
@@ -62,6 +64,8 @@ func mapRepoGetExpenseRowMulti(e repo.GetExpensesRow) Expense {
|
||||
Date: e.Expense.ExpDate,
|
||||
Shares: []ExpenseShare{},
|
||||
Payments: []ExpensePayment{},
|
||||
PaidOff: e.Expense.PaidOff,
|
||||
SharesEven: e.Expense.SharesEven,
|
||||
CreationDate: e.Expense.CreationDate,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user