docker network
This commit is contained in:
8
packages/shared-components/helper/event.ts
Normal file
8
packages/shared-components/helper/event.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Event, Participant } from "@repo/db";
|
||||
|
||||
export const eventCompleted = (event: Event, participant?: Participant) => {
|
||||
if (!participant) return false;
|
||||
if (event.finisherMoodleCourseId && !participant.finisherMoodleCurseCompleted) return false;
|
||||
if (event.hasPresenceEvents && !participant.attended) return false;
|
||||
return true;
|
||||
};
|
||||
@@ -1 +1,2 @@
|
||||
export * from "./cn";
|
||||
export * from "./event";
|
||||
|
||||
Reference in New Issue
Block a user