mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
add server to monorepo.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { get } from 'lodash';
|
||||
import { Service } from 'typedi';
|
||||
import { FeaturesConfigure } from './constants';
|
||||
|
||||
@Service()
|
||||
export class FeaturesConfigureManager {
|
||||
/**
|
||||
*
|
||||
* @param featureName
|
||||
* @returns
|
||||
*/
|
||||
getFeatureConfigure = (featureName: string, accessor?: string) => {
|
||||
const meta = FeaturesConfigure.find(
|
||||
(feature) => feature.name === featureName
|
||||
);
|
||||
return accessor ? get(meta, accessor) : meta;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user