import { Db, IUnleashConfig } from 'lib/server-impl'; import PrivateProjectStore from './privateProjectStore'; import { PrivateProjectChecker } from './privateProjectChecker'; import { FakeprivateProjectChecker } from './fakePrivateProjectChecker'; export const createPrivateProjectChecker = ( db: Db, config: IUnleashConfig, ): PrivateProjectChecker => { const { getLogger } = config; const privateProjectStore = new PrivateProjectStore(db, getLogger); return new PrivateProjectChecker({ privateProjectStore: privateProjectStore, }); }; export const createFakeprivateProjectChecker = (): FakeprivateProjectChecker => { return new FakeprivateProjectChecker(); };