@@ -64,82 +64,82 @@ export class SystemService {
6464 try {
6565 const tailscaleConfig = this . config . get < TailscaleConfig > ( "tailscale" ) ;
6666
67- let supportsGameServerNodes = false ;
68- if (
69- tailscaleConfig . key &&
70- tailscaleConfig . secret &&
71- tailscaleConfig . netName
72- ) {
73- supportsGameServerNodes = true ;
74- }
67+ let supportsGameServerNodes = false ;
68+ if (
69+ tailscaleConfig . key &&
70+ tailscaleConfig . secret &&
71+ tailscaleConfig . netName
72+ ) {
73+ supportsGameServerNodes = true ;
74+ }
7575
76- await this . hasura . mutation ( {
77- insert_settings_one : {
78- __args : {
79- object : {
80- name : SystemSettingName . SupportsGameServerNodes ,
81- value : supportsGameServerNodes . toString ( ) ,
82- } ,
83- on_conflict : {
84- constraint : "settings_pkey" ,
85- update_columns : [ "value" ] ,
86- } ,
76+ await this . hasura . mutation ( {
77+ insert_settings_one : {
78+ __args : {
79+ object : {
80+ name : SystemSettingName . SupportsGameServerNodes ,
81+ value : supportsGameServerNodes . toString ( ) ,
82+ } ,
83+ on_conflict : {
84+ constraint : "settings_pkey" ,
85+ update_columns : [ "value" ] ,
8786 } ,
88- __typename : true ,
8987 } ,
90- } ) ;
88+ __typename : true ,
89+ } ,
90+ } ) ;
9191
92- const discordConfig = this . config . get < DiscordConfig > ( "discord" ) ;
92+ const discordConfig = this . config . get < DiscordConfig > ( "discord" ) ;
9393
94- let supportsDiscordBot = false ;
95- if (
96- discordConfig . clientId &&
97- discordConfig . clientSecret &&
98- discordConfig . token
99- ) {
100- supportsDiscordBot = true ;
101- }
94+ let supportsDiscordBot = false ;
95+ if (
96+ discordConfig . clientId &&
97+ discordConfig . clientSecret &&
98+ discordConfig . token
99+ ) {
100+ supportsDiscordBot = true ;
101+ }
102102
103- await this . hasura . mutation ( {
104- insert_settings_one : {
105- __args : {
106- object : {
107- name : SystemSettingName . SupportsDiscordBot ,
108- value : supportsDiscordBot . toString ( ) ,
109- } ,
110- on_conflict : {
111- constraint : "settings_pkey" ,
112- update_columns : [ "value" ] ,
113- } ,
103+ await this . hasura . mutation ( {
104+ insert_settings_one : {
105+ __args : {
106+ object : {
107+ name : SystemSettingName . SupportsDiscordBot ,
108+ value : supportsDiscordBot . toString ( ) ,
109+ } ,
110+ on_conflict : {
111+ constraint : "settings_pkey" ,
112+ update_columns : [ "value" ] ,
114113 } ,
115- __typename : true ,
116114 } ,
117- } ) ;
115+ __typename : true ,
116+ } ,
117+ } ) ;
118118
119- const steamConfig = this . config . get < SteamConfig > ( "steam" ) ;
119+ const steamConfig = this . config . get < SteamConfig > ( "steam" ) ;
120120
121- let supportsGameServerNodeVersionPinning = false ;
122- if ( steamConfig . steamUser && steamConfig . steamPassword ) {
123- supportsGameServerNodeVersionPinning = true ;
124- }
121+ let supportsGameServerNodeVersionPinning = false ;
122+ if ( steamConfig . steamUser && steamConfig . steamPassword ) {
123+ supportsGameServerNodeVersionPinning = true ;
124+ }
125125
126- await this . hasura . mutation ( {
127- insert_settings_one : {
128- __args : {
129- object : {
130- name : SystemSettingName . SupportsGameServerVersionPinning ,
131- value : supportsGameServerNodeVersionPinning . toString ( ) ,
132- } ,
133- on_conflict : {
134- constraint : "settings_pkey" ,
135- update_columns : [ "value" ] ,
136- } ,
126+ await this . hasura . mutation ( {
127+ insert_settings_one : {
128+ __args : {
129+ object : {
130+ name : SystemSettingName . SupportsGameServerVersionPinning ,
131+ value : supportsGameServerNodeVersionPinning . toString ( ) ,
132+ } ,
133+ on_conflict : {
134+ constraint : "settings_pkey" ,
135+ update_columns : [ "value" ] ,
137136 } ,
138- __typename : true ,
139137 } ,
140- } ) ;
138+ __typename : true ,
139+ } ,
140+ } ) ;
141141
142- this . featuresDetected = true ;
142+ this . featuresDetected = true ;
143143 } catch ( error ) {
144144 this . logger . warn ( "Error detecting features" , error ) ;
145145 setTimeout ( ( ) => {
0 commit comments