File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -414,16 +414,7 @@ export class GameServerNodeService {
414414 } ) ;
415415 } ) ;
416416
417- stream
418- . on ( "error" , ( error ) => {
419- console . error ( "Update job error" , error ) ;
420- } )
421- . on ( "close" , async ( ) => {
422- console . info ( "Update job closed" ) ;
423- } ) ;
424-
425417 stream . on ( "end" , async ( ) => {
426- console . info ( "Update job completed" ) ;
427418 await this . hasura . mutation ( {
428419 update_game_server_nodes_by_pk : {
429420 __args : {
@@ -437,8 +428,6 @@ export class GameServerNodeService {
437428 update_status : true ,
438429 } ,
439430 } ) ;
440-
441- console . info ( "Update job completed" ) ;
442431 } ) ;
443432 } catch ( error ) {
444433 console . warn ( "unable to monitor update status" , error ) ;
Original file line number Diff line number Diff line change @@ -30,9 +30,14 @@ export class MarkGameServerOffline extends WorkerHost {
3030 } ,
3131 } ,
3232 label : true ,
33+ is_dedicated : true ,
3334 } ,
3435 } ) ;
3536
37+ if ( ! update_servers_by_pk . is_dedicated ) {
38+ return ;
39+ }
40+
3641 this . notifications . send ( "DedicatedServerStatus" , {
3742 message : `Dedicated Server (${ update_servers_by_pk . label || job . data . serverId } ) is Offline.` ,
3843 title : "Dedicated Server Offline" ,
You can’t perform that action at this time.
0 commit comments