ghorsington 5 years ago
parent
commit
e3177ded9c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      bot/src/commands/contest.ts

+ 1 - 2
bot/src/commands/contest.ts

@@ -360,7 +360,6 @@ async function onMessage(actionsDone: boolean, m: Message, content: string) {
     let channel = m.channel;
 
     let contestRepo = getRepository(Contest);
-    let entryRepo = getRepository(ContestEntry);
 
     let contest = await contestRepo.findOne({
         where: {
@@ -373,7 +372,7 @@ async function onMessage(actionsDone: boolean, m: Message, content: string) {
     if (!contest)
         return false;
 
-    await registerEntry(m);
+    await registerEntry(m, contest);
 
     // Don't prevent further actions
     return false;