Skip to content

Commit 5704b52

Browse files
committed
fix: remove unused exception, other linting/formatiing
1 parent 55d1939 commit 5704b52

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +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 { Injectable, NotFoundException, UnprocessableEntityException } from '@nestjs/common';
5+
import { Injectable, UnprocessableEntityException } from '@nestjs/common';
66
import type { ScalarInstrument } from '@opendatacapture/runtime-core';
77
import type {
88
CreateInstrumentRecordData,

apps/api/src/subjects/subjects.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export class SubjectsService {
5555
const existingSubjects = await this.subjectModel.findMany({
5656
select: { id: true },
5757
where: {
58-
id: { in: subjectIds },
59-
AND: [accessibleQuery(ability, 'read', 'Subject')]
58+
AND: [accessibleQuery(ability, 'read', 'Subject')],
59+
id: { in: subjectIds }
6060
}
6161
});
6262

0 commit comments

Comments
 (0)