ghorsington 5 年之前
父節點
當前提交
e3177ded9c
共有 1 個文件被更改,包括 1 次插入2 次删除
  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;