Skip to content

Commit

Permalink
Send match IDs to eFPS
Browse files Browse the repository at this point in the history
  • Loading branch information
Tripperful committed May 8, 2024
1 parent b063150 commit 51ad574
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/common/src/types/match.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export interface EfpsMatchSummaryStat {
}

export interface EfpsMatchSummary {
id: string;
server: string;
map: string;
teamplay: boolean;
Expand Down
2 changes: 2 additions & 0 deletions packages/server/src/db/stats/stats.functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,8 @@ $$ LANGUAGE plpgsql;

CREATE
OR REPLACE FUNCTION get_efps_stats (match_id text) RETURNS json AS $$ BEGIN RETURN json_build_object(
'id',
get_efps_stats.match_id,
'server',
(SELECT servers.name FROM servers WHERE servers.id = server_id),
'map',
Expand Down

0 comments on commit 51ad574

Please sign in to comment.