mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-25 00:59:50 +00:00
feat(nestjs): migrate to NestJS
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { defaultTo } from 'lodash';
|
||||
import { IOrganizationBuildDTO } from './Organization.types';
|
||||
import { BuildOrganizationDto } from './dtos/Organization.dto';
|
||||
|
||||
/**
|
||||
* Transformes build DTO object.
|
||||
* @param {IOrganizationBuildDTO} buildDTO
|
||||
* @returns {IOrganizationBuildDTO}
|
||||
*/
|
||||
export const transformBuildDto = (
|
||||
buildDTO: BuildOrganizationDto,
|
||||
): BuildOrganizationDto => {
|
||||
return {
|
||||
...buildDTO,
|
||||
dateFormat: defaultTo(buildDTO.dateFormat, 'DD MMM yyyy'),
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user