Skip to content

Commit 894c2b2

Browse files
committed
Prevent undefined event id when getting an event on the api
1 parent caa5c53 commit 894c2b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

functions/src/api/dao/eventDao.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ export class EventDao {
2020
end: data.dates.end?.toDate(),
2121
}
2222
}
23+
if (!baseData.id) {
24+
baseData.id = eventId
25+
}
2326
return baseData as Event
2427
}
2528

0 commit comments

Comments
 (0)