mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
refactoring: custom views service.
fix: constraints of delete item from storage. fix: constraints of delete item category from storage. fix: localize database seeds files. fix: view meta data in accounts list response.
This commit is contained in:
@@ -34,11 +34,12 @@ export default class ExpenseRepository extends TenantRepository {
|
||||
* Inserts a new expense object.
|
||||
* @param {IExpense} expense -
|
||||
*/
|
||||
async create(expense: IExpense): Promise<void> {
|
||||
async create(expenseInput: IExpense): Promise<void> {
|
||||
const { Expense } = this.models;
|
||||
await Expense.query().insert({ ...expense });
|
||||
|
||||
const expense = await Expense.query().insert({ ...expenseInput });
|
||||
this.flushCache();
|
||||
|
||||
return expense;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user