mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 23:00:34 +00:00
feat: wip migrate to nestjs
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { Inject, Injectable } from '@nestjs/common';
|
||||
import { Bill } from '../models/Bill';
|
||||
|
||||
@Injectable()
|
||||
export class GetDueBills {
|
||||
constructor(private billModel: typeof Bill) {}
|
||||
constructor(
|
||||
@Inject(Bill.name)
|
||||
private billModel: typeof Bill,
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Retrieve all due bills or for specific given vendor id.
|
||||
|
||||
Reference in New Issue
Block a user