mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix: edit custom view details.
This commit is contained in:
@@ -15,15 +15,6 @@ export default class AccountsTypesService implements IAccountsTypesService{
|
||||
*/
|
||||
async getAccountsTypes(tenantId: number): Promise<IAccountType> {
|
||||
const { accountTypeRepository } = this.tenancy.repositories(tenantId);
|
||||
const { AccountType } = this.tenancy.models(tenantId);
|
||||
const { __ } = this.tenancy.i18n(tenantId);
|
||||
|
||||
const allAccountsTypes = await accountTypeRepository.all();
|
||||
|
||||
return allAccountsTypes.map((_accountType: IAccountType) => ({
|
||||
id: _accountType.id,
|
||||
label: __(AccountType.labels[_accountType.key]),
|
||||
...omit(_accountType, ['id']),
|
||||
}));
|
||||
return accountTypeRepository.all();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user