mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
refactor: nestjs
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
} from '../types/Vendors.types';
|
||||
import { CreateEditVendorDTOService } from './CreateEditVendorDTO';
|
||||
import { TenantModelProxy } from '@/modules/System/models/TenantBaseModel';
|
||||
import { CreateVendorDto } from '../dtos/CreateVendor.dto';
|
||||
|
||||
@Injectable()
|
||||
export class CreateVendorService {
|
||||
@@ -34,7 +35,7 @@ export class CreateVendorService {
|
||||
* @param {IVendorNewDTO} vendorDTO
|
||||
* @return {Promise<void>}
|
||||
*/
|
||||
public async createVendor(vendorDTO: IVendorNewDTO, trx?: Knex.Transaction) {
|
||||
public async createVendor(vendorDTO: CreateVendorDto, trx?: Knex.Transaction) {
|
||||
// Transforms create DTO to customer object.
|
||||
const vendorObject = await this.transformDTO.transformCreateDTO(vendorDTO);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user