Skip to content

Commit

Permalink
restructure logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamPalriwala committed Mar 5, 2024
1 parent f249f24 commit eb097ca
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/enrollment/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,17 @@ export const createEnrollment = async (enrollmentData: TEnrollmentInput): Promis
throw new Error("Enrollment already exists.");
}

console.log("creating new enrollment");

const enrollment = await db.enrollment.create({
data: enrollmentData,
});

const user = await getUser(enrollmentData.userId);
console.log("user", user);

const repository = await getRepositoryById(enrollmentData.repositoryId);
console.log("repository", repository);

console.log("creating new enrollment");
const enrollment = await db.enrollment.create({
data: enrollmentData,
});

console.log("new enrollment created", enrollment);

return enrollment;
Expand Down

0 comments on commit eb097ca

Please sign in to comment.