Skip to content

Commit ac4c95b

Browse files
1 parent 7591b30 commit ac4c95b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/services/DiscordBotDispatcherService.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ import { Logger } from "@tsed/common";
44
import GlobalEnv from "../model/constants/GlobalEnv.js";
55
import { BotDownloadAuthenticationRepo } from "../db/repo/BotDownloadAuthenticationRepo.js";
66
import { 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

810
type 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

1721
type 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

Comments
 (0)