Skip to content

Commit cc430ff

Browse files
authored
Merge pull request #1125 from david-roper/improve-upload
createMany for upload formating and linting fixes
2 parents d27494b + c0d1401 commit cc430ff

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
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

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)