Skip to content

Commit df5733e

Browse files
committed
Merge branch 'main' of https://github.com/kiminkim724/maple into 1698-upgrade-node-20
2 parents 88baabb + 89c4237 commit df5733e

File tree

4 files changed

+1107
-663
lines changed

4 files changed

+1107
-663
lines changed

functions/src/events/scrapeEvents.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ abstract class EventScraper<ListItem, Event extends BaseEvent> {
6060
if (event.startsAt.toMillis() < upcomingOrRecentCutoff.toMillis()) break
6161

6262
writer.set(db.doc(`/events/${event.id}`), event, { merge: true })
63+
64+
console.log("event in run()", event)
6365
}
6466

6567
await writer.close()
@@ -278,6 +280,8 @@ const shouldScrapeVideo = async (EventId: number) => {
278280
.get()
279281
const eventData = eventInDb.data()
280282

283+
console.log("eventData in shouldScrapeVideo()", eventData)
284+
281285
if (!eventData) {
282286
return false
283287
}
@@ -301,6 +305,8 @@ class HearingScraper extends EventScraper<HearingListItem, Hearing> {
301305
const data = await api.getHearing(EventId)
302306
const content = HearingContent.check(data)
303307

308+
console.log("content in getEvent()", content)
309+
304310
if (await shouldScrapeVideo(EventId)) {
305311
try {
306312
const maybeVideoUrl = await getHearingVideoUrl(EventId)

functions/src/events/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const Hearing = BaseEvent.extend({
7979
type: L("hearing"),
8080
content: HearingContent,
8181
videoURL: Optional(String),
82-
videoAssemblyId: Optional(String),
82+
videoTranscriptionId: Optional(String),
8383
videoFetchedAt: Optional(InstanceOf(Timestamp))
8484
})
8585

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
"eslint-plugin-jsx-a11y": "^6.9.0",
178178
"file-loader": "^6.2.0",
179179
"firebase-admin": "^11.11.1",
180-
"firebase-tools": "^12.4.0",
180+
"firebase-tools": "^13.23.0",
181181
"ini": "^1.3.5",
182182
"inquirer": "^6.5.1",
183183
"jest": "^27.5.1",
@@ -200,4 +200,4 @@
200200
"resolutions": {
201201
"jackspeak": "2.1.1"
202202
}
203-
}
203+
}

0 commit comments

Comments
 (0)