docker network
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
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,6 +1,6 @@
|
||||
import { prisma } from "@repo/db";
|
||||
import { eventCompleted } from "@repo/shared-components";
|
||||
import { Router } from "express";
|
||||
import { eventCompleted } from "helper/events";
|
||||
import { handleParticipantEnrolled, handleParticipantFinished } from "modules/event";
|
||||
import { getMoodleCourseCompletionStatus } from "modules/moodle";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user