Skip to content

Commit

Permalink
add documentation to snapshot method
Browse files Browse the repository at this point in the history
  • Loading branch information
choden-dev committed Sep 16, 2024
1 parent 84ee169 commit 16930c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/src/data-layer/services/EventService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ class EventService {
.delete()
}

/**
* Utility method for getting the snapshot of a document
*
* @param id the document id of the event to check, likely coming from a pagination cursor
*/
public async getEventSnapshot(id: string) {
return await FirestoreCollections.events.doc(id).get()
}
Expand Down

0 comments on commit 16930c9

Please sign in to comment.