-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove event reservations from firebase and subcollection
* Note that `Event.max_occupancy` is kept as this could still be useful. * Also note that `FirestoreSubcollections.ts` was kept as this could be used in the future. * Also removed the event request for signup
- Loading branch information
1 parent
b509da1
commit 7204ccb
Showing
3 changed files
with
2 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
// credit https://plainenglish.io/blog/using-firestore-with-typescript-in-the-v9-sdk-cf36851bb099 | ||
import "dotenv/config" | ||
import firestore from "./Firestore" | ||
import { EventReservation } from "data-layer/models/firebase" | ||
|
||
const FirestoreSubcollections = { | ||
reservations: (eventId: string) => | ||
firestore.subcollection<EventReservation>("events", eventId, "reservations") | ||
} as const | ||
const FirestoreSubcollections = {} as const | ||
|
||
export default FirestoreSubcollections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters