|
@@ -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;
|