mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
1392b10727
Co-authored-by: Simon Hornby <liquidwicked64@gmail.com>
16 lines
693 B
TypeScript
16 lines
693 B
TypeScript
import { Db } from '../../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 createChangeRequestSegmentUsageReadModel = (
|
|
db: Db,
|
|
): IChangeRequestSegmentUsageReadModel => {
|
|
return new ChangeRequestSegmentUsageReadModel(db);
|
|
};
|
|
|
|
export const createFakeChangeRequestSegmentUsageReadModel =
|
|
(): IChangeRequestSegmentUsageReadModel => {
|
|
return new FakeChangeRequestSegmentUsageReadModel();
|
|
};
|