File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ class Serializer {
16
16
let current = obj ;
17
17
for ( const middleware of this . serializeMiddlewares ) {
18
18
if ( current && typeof current . then === "function" ) {
19
- current = current . then (
20
- data => data && middleware . serialize ( data , context )
21
- ) ;
19
+ current = current . then ( data => data && middleware . serialize ( data , ctx ) ) ;
22
20
} else if ( current ) {
23
21
try {
24
22
current = middleware . serialize ( current , ctx ) ;
@@ -36,7 +34,7 @@ class Serializer {
36
34
let current = value ;
37
35
for ( const middleware of this . deserializeMiddlewares ) {
38
36
if ( current && typeof current . then === "function" ) {
39
- current = current . then ( data => middleware . deserialize ( data , context ) ) ;
37
+ current = current . then ( data => middleware . deserialize ( data , ctx ) ) ;
40
38
} else {
41
39
current = middleware . deserialize ( current , ctx ) ;
42
40
}
You can’t perform that action at this time.
0 commit comments