Skip to content

Commit

Permalink
🚧 progress: Add comment on how to make events views reactive.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Jul 5, 2024
1 parent 0d37c09 commit 1385021
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imports/api/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const event = async (
createdAt,
}: Omit<ConsultationDocument, '_id'>,
): Promise<EventDocument> => {
// TODO Maybe some sort of joined view?
const patient = await Patients.findOneAsync({_id: patientId}); // TODO Make reactive (maybe)?
assert(patient !== undefined);
const begin = datetime;
Expand Down

0 comments on commit 1385021

Please sign in to comment.