Skip to content

Commit 4dc2599

Browse files
authored
Bugfix/change transcript selection to most recent (#259)
* [CDPF-256] Change orderBy to created timestamp from confidence * [CDPF-256] Change projectId to seattle production * [CDPF-256] Add transcript JSON logging
1 parent ea805ef commit 4dc2599

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/index-react.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ReactDOM.render(
88
appConfig={{
99
firebaseConfig: {
1010
options: {
11-
projectId: "cdp-seattle-staging-dbengvtn",
11+
projectId: "cdp-seattle-21723dcf",
1212
},
1313
settings: {},
1414
},

src/networking/TranscriptService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default class TranscriptService extends ModelService {
2727
WHERE_OPERATOR.eq,
2828
doc(NetworkService.getDb(), COLLECTION_NAME.Session, sessionId)
2929
),
30-
orderBy("confidence", ORDER_DIRECTION.desc),
30+
orderBy("created", ORDER_DIRECTION.desc),
3131
limit(1),
3232
],
3333
new PopulationOptions([

src/pages/EventPage/EventPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ const EventPage: FC = () => {
113113
// Create transcript items from the transcripts
114114
const transcriptJsons = await Promise.all(
115115
transcripts.map((transcript) => {
116+
console.log("Transcript JSON Data", transcript[0]);
116117
return transcriptJsonService.download(transcript[0].file?.uri as string);
117118
})
118119
);

0 commit comments

Comments
 (0)