@@ -4,14 +4,18 @@ import { Logger } from "@tsed/common";
44import GlobalEnv from "../model/constants/GlobalEnv.js" ;
55import { BotDownloadAuthenticationRepo } from "../db/repo/BotDownloadAuthenticationRepo.js" ;
66import { SubmissionRepo } from "../db/repo/SubmissionRepo.js" ;
7+ import RECORDED_FORMAT from "../model/constants/RecordedFormat.js" ;
8+ import DOOM_ENGINE from "../model/constants/DoomEngine.js" ;
79
810type SubmissionPayload = {
911 wadName : string ;
1012 wadLevel : string ;
11- submissionRound : string ;
1213 timeStamp : number ;
1314 info : string | null ;
1415 downloadUrl : string | null ;
16+ recordFormat : RECORDED_FORMAT ;
17+ mapCompatibility : DOOM_ENGINE ;
18+ sourcePort : string | null ;
1519} ;
1620
1721type PendingValidationPayload = {
@@ -63,17 +67,17 @@ export class DiscordBotDispatcherService implements OnInit {
6367 }
6468
6569 public async sendNewSubmission ( entry : SubmissionModel ) : Promise < void > {
66- const submissionRound = await entry . submissionRound ;
67-
6870 entry = await this . createAuthEntry ( entry ) ;
6971
7072 const payload : SubmissionPayload = {
7173 wadName : entry . wadName ,
7274 info : entry . info ,
7375 wadLevel : entry . wadLevel ,
7476 timeStamp : entry . createdAt . getTime ( ) ,
75- submissionRound : submissionRound . name ,
7677 downloadUrl : entry . getDownloadUrlViaBot ( ) ,
78+ recordFormat : entry . recordedFormat ,
79+ mapCompatibility : entry . wadEngine ,
80+ sourcePort : entry . playTestEngine ,
7781 } ;
7882
7983 try {
0 commit comments