1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00
unleash.unleash/src/lib/features/change-request-segment-usage-read-model.ts/createChangeRequestSegmentUsageReadModel.ts

16 lines
679 B
TypeScript
Raw Normal View History

import { Db } from 'lib/server-impl';
import { ChangeRequestSegmentUsageReadModel } from './sql-change-request-segment-usage-read-model';
import { FakeChangeRequestSegmentUsageReadModel } from './fake-change-request-segment-usage-read-model';
import { IChangeRequestSegmentUsageReadModel } from './change-request-segment-usage-read-model';
export const createChangeRequestSegmentUsageModel = (
db: Db,
): IChangeRequestSegmentUsageReadModel => {
return new ChangeRequestSegmentUsageReadModel(db);
};
export const createFakeChangeRequestAccessService =
(): IChangeRequestSegmentUsageReadModel => {
return new FakeChangeRequestSegmentUsageReadModel();
};