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-service/createChangeRequestSegmentUsageReadModel.ts
Daniel Brooks 1392b10727
fix(import): making all imports relative and removing baseUrl (#5847)
Co-authored-by: Simon Hornby <liquidwicked64@gmail.com>
2024-01-17 15:33:03 +02:00

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();
};