Skip to content

Commit da39af2

Browse files
committed
feat: make subjectIdList map just take in subject ids
1 parent 4d24a11 commit da39af2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,7 @@ export class InstrumentRecordsService {
276276
const createdSessionsArray: Session[] = [];
277277

278278
try {
279-
const subjectIdList = records.map((record) => {
280-
const { subjectId } = record;
281-
279+
const subjectIdList = records.map(({ subjectId }) => {
282280
const subjectToAdd: CreateSubjectDto = { id: subjectId };
283281

284282
return subjectToAdd;

0 commit comments

Comments
 (0)