File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -561,6 +561,7 @@ export const get_players_label: any = async (
561561 team_label: { _eq: $team_label }
562562 }
563563 }
564+ order_by: { player_label: asc }
564565 ) {
565566 player_label
566567 }
@@ -779,6 +780,27 @@ export const get_map_name: any = async (map_id: string) => {
779780 return query_map . contest_map [ 0 ] . filename ?? null ;
780781} ;
781782
783+ /**
784+ * get map team labels
785+ * @param {string } map_id
786+ * @returns {string } team_labels JSON string
787+ */
788+ export const get_map_team_labels : any = async ( map_id : string ) => {
789+ const query_map : any = await client . request (
790+ gql `
791+ query get_map_team_labels($map_id: uuid!) {
792+ contest_map(where: { map_id: { _eq: $map_id } }) {
793+ team_labels
794+ }
795+ }
796+ ` ,
797+ {
798+ map_id : map_id ,
799+ } ,
800+ ) ;
801+ return query_map . contest_map [ 0 ] ?. team_labels ?? null ;
802+ } ;
803+
782804/**
783805 * get room_info by room_id
784806 * @param {uuid } room_id
Original file line number Diff line number Diff line change @@ -283,6 +283,7 @@ const docker_cron = async () => {
283283 `TERMINAL=SERVER` ,
284284 `TOKEN=${ server_token } ` ,
285285 `GAME_TIME=${ game_time } ` ,
286+ `TEAM_COUNT=${ queue_front . team_label_binds . length } ` ,
286287 `MAP_ID=${ queue_front . map_id } ` ,
287288 `SCORE_URL=${ score_url } ` ,
288289 `FINISH_URL=${ finish_url } ` ,
You can’t perform that action at this time.
0 commit comments