Skip to content

Commit 5f0f789

Browse files
committed
fix: remove forward ref in instrument record service
1 parent 23f5666 commit 5f0f789

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

apps/api/src/instrument-records/instrument-records.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { forwardRef, Module } from '@nestjs/common';
1+
import { Module } from '@nestjs/common';
22

33
import { GroupsModule } from '@/groups/groups.module';
44
import { InstrumentsModule } from '@/instruments/instruments.module';
@@ -12,7 +12,7 @@ import { InstrumentRecordsService } from './instrument-records.service';
1212
@Module({
1313
controllers: [InstrumentRecordsController],
1414
exports: [InstrumentRecordsService],
15-
imports: [GroupsModule, InstrumentsModule, SessionsModule, forwardRef(() => SubjectsModule)],
15+
imports: [GroupsModule, InstrumentsModule, SessionsModule, SubjectsModule],
1616
providers: [InstrumentMeasuresService, InstrumentRecordsService]
1717
})
1818
export class InstrumentRecordsModule {}

apps/api/src/instrument-records/instrument-records.service.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@ import { replacer, reviver, yearsPassed } from '@douglasneuroinformatics/libjs';
22
import { accessibleQuery, InjectModel } from '@douglasneuroinformatics/libnest';
33
import type { Model } from '@douglasneuroinformatics/libnest';
44
import { linearRegression } from '@douglasneuroinformatics/libstats';
5-
import {
6-
BadRequestException,
7-
forwardRef,
8-
Inject,
9-
Injectable,
10-
NotFoundException,
11-
UnprocessableEntityException
12-
} from '@nestjs/common';
5+
import { BadRequestException, Injectable, NotFoundException, UnprocessableEntityException } from '@nestjs/common';
136
import type { Json, ScalarInstrument } from '@opendatacapture/runtime-core';
147
import { DEFAULT_GROUP_NAME } from '@opendatacapture/schemas/core';
158
import type {
@@ -41,7 +34,6 @@ export class InstrumentRecordsService {
4134
private readonly instrumentMeasuresService: InstrumentMeasuresService,
4235
private readonly instrumentsService: InstrumentsService,
4336
private readonly sessionsService: SessionsService,
44-
@Inject(forwardRef(() => SubjectsService))
4537
private readonly subjectsService: InstanceType<typeof SubjectsService>
4638
) {}
4739

0 commit comments

Comments
 (0)