Skip to content

Commit 2e4a766

Browse files
committed
chore: rename userId in datahub export column to username
1 parent 51e1579 commit 2e4a766

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export class InstrumentRecordsService {
186186
subjectId: removeSubjectIdScope(record.subject.id),
187187
subjectSex: record.subject.sex,
188188
timestamp: record.date.toISOString(),
189-
userId: record.session.user?.username ?? 'N/A',
189+
username: record.session.user?.username ?? 'N/A',
190190
value: measureValue
191191
});
192192
}
@@ -210,7 +210,7 @@ export class InstrumentRecordsService {
210210
subjectId: removeSubjectIdScope(record.subject.id),
211211
subjectSex: record.subject.sex,
212212
timestamp: record.date.toISOString(),
213-
userId: record.session.user?.username ?? 'N/A',
213+
username: record.session.user?.username ?? 'N/A',
214214
value: arrayEntry.measureValue
215215
});
216216
});

packages/schemas/src/instrument-records/instrument-records.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export type InstrumentRecordsExport = {
6464
subjectId: string;
6565
subjectSex: null | string;
6666
timestamp: string;
67-
userId: string;
67+
username: string;
6868
value: InstrumentMeasureValue;
6969
}[];
7070

0 commit comments

Comments
 (0)