Skip to content
Snippets Groups Projects
Commit dad991db authored by joel.vonderwe's avatar joel.vonderwe
Browse files

Remove logs

parent b930db3f
No related branches found
No related tags found
No related merge requests found
Pipeline #31853 failed
......@@ -25,7 +25,6 @@ class AssignmentManager {
async getByGitlabLink(gitlabLink: string, include: Prisma.AssignmentInclude | undefined = undefined): Promise<Assignment | undefined> {
const nameInUrl = gitlabLink.replace('.git', '').split('/').pop()!;
console.log(nameInUrl);
const result = await db.assignment.findMany({
where : {
gitlabLink: {
......@@ -34,12 +33,10 @@ class AssignmentManager {
},
include: include
}) as Array<Assignment>;
console.log(result);
return result.length > 0 ? result[0] : undefined;
}
get(nameOrUrl: string, include: Prisma.AssignmentInclude | undefined = undefined): Promise<Assignment | undefined> {
console.log(nameOrUrl);
if ( nameOrUrl.includes('://') ) {
return this.getByGitlabLink(nameOrUrl, include);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment