@@ -30,12 +30,7 @@ export class MatchRelayController {
3030 @Param ( "fragment" ) fragment : string ,
3131 @Res ( ) response : Response ,
3232 ) {
33- this . matchRelayService . getField (
34- response ,
35- matchId ,
36- parseInt ( fragment ) ,
37- "full" ,
38- ) ;
33+ this . matchRelayService . getFragment ( response , matchId , parseInt ( fragment ) ) ;
3934 }
4035
4136 @Get ( ":fragment/delta" )
@@ -44,12 +39,7 @@ export class MatchRelayController {
4439 @Param ( "fragment" ) fragment : string ,
4540 @Res ( ) response : Response ,
4641 ) {
47- this . matchRelayService . getField (
48- response ,
49- matchId ,
50- parseInt ( fragment ) ,
51- "delta" ,
52- ) ;
42+ this . matchRelayService . getFragment ( response , matchId , parseInt ( fragment ) ) ;
5343 }
5444
5545 @Get ( ":token/:fragment/start" )
@@ -67,12 +57,7 @@ export class MatchRelayController {
6757 @Param ( "fragment" ) fragment : string ,
6858 @Res ( ) response : Response ,
6959 ) {
70- this . matchRelayService . getField (
71- response ,
72- matchId ,
73- parseInt ( fragment ) ,
74- "full" ,
75- ) ;
60+ this . matchRelayService . getFragment ( response , matchId , parseInt ( fragment ) ) ;
7661 }
7762
7863 @Get ( ":token/:fragment/delta" )
@@ -81,12 +66,7 @@ export class MatchRelayController {
8166 @Param ( "fragment" ) fragment : string ,
8267 @Res ( ) response : Response ,
8368 ) {
84- this . matchRelayService . getField (
85- response ,
86- matchId ,
87- parseInt ( fragment ) ,
88- "delta" ,
89- ) ;
69+ this . matchRelayService . getFragment ( response , matchId , parseInt ( fragment ) ) ;
9070 }
9171
9272 @Post ( ":token/:fragment/start" )
@@ -96,6 +76,10 @@ export class MatchRelayController {
9676 @Req ( ) request : Request ,
9777 @Res ( ) response : Response ,
9878 ) {
79+ console . info ( `post start` , {
80+ matchId,
81+ fragment : parseInt ( fragment ) ,
82+ } ) ;
9983 this . matchRelayService . postField (
10084 request ,
10185 response ,
@@ -112,6 +96,10 @@ export class MatchRelayController {
11296 @Req ( ) request : Request ,
11397 @Res ( ) response : Response ,
11498 ) {
99+ console . info ( `post full` , {
100+ matchId,
101+ fragment : parseInt ( fragment ) ,
102+ } ) ;
115103 this . matchRelayService . postField (
116104 request ,
117105 response ,
@@ -128,6 +116,10 @@ export class MatchRelayController {
128116 @Req ( ) request : Request ,
129117 @Res ( ) response : Response ,
130118 ) {
119+ console . info ( `post delta` , {
120+ matchId,
121+ fragment : parseInt ( fragment ) ,
122+ } ) ;
131123 this . matchRelayService . postField (
132124 request ,
133125 response ,
0 commit comments