mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-30 20:53:29 +00:00
Add domain, subdomain to GameRecord (#1370)
## Description: Add domain, subdomain to GameRecord. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors Co-authored-by: evanpelle <evanpelle@gmail.com>
This commit is contained in:
@@ -47,11 +47,13 @@ export async function archive(gameRecord: GameRecord) {
|
||||
|
||||
async function archiveAnalyticsToR2(gameRecord: GameRecord) {
|
||||
// Create analytics data object
|
||||
const { info, version, gitCommit } = gameRecord;
|
||||
const { info, version, gitCommit, subdomain, domain } = gameRecord;
|
||||
const analyticsData: AnalyticsRecord = {
|
||||
info,
|
||||
version,
|
||||
gitCommit,
|
||||
subdomain,
|
||||
domain,
|
||||
};
|
||||
|
||||
try {
|
||||
|
||||
@@ -628,6 +628,7 @@ export class GameServer {
|
||||
this._startTime ?? 0,
|
||||
Date.now(),
|
||||
this.winner?.winner,
|
||||
this.config,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user