mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
refactor: items services to Nestjs
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
import { Knex } from 'knex';
|
||||
import { Global, Module, Scope } from '@nestjs/common';
|
||||
import { TENANCY_DB_CONNECTION } from '../TenancyDB/TenancyDB.constants';
|
||||
|
||||
import { Item } from '../../../modules/Items/models/Item';
|
||||
import { Account } from '@/modules/Accounts/models/Account';
|
||||
import { TenantModel } from '@/modules/System/models/TenantModel';
|
||||
import { TenantMetadata } from '@/modules/System/models/TenantMetadataModel';
|
||||
|
||||
const models = [Item, Account, TenantModel, TenantMetadata];
|
||||
|
||||
const models = [Item, Account];
|
||||
const modelProviders = models.map((model) => {
|
||||
return {
|
||||
provide: model.name,
|
||||
|
||||
Reference in New Issue
Block a user