Skip to content

Commit 3efece5

Browse files
authored
Merge pull request #1265 from OneSignal/user_model/fix_json_representation
[User model] Fix PushSubscriptionChanged state json representation
2 parents 8a11a84 + c70c200 commit 3efece5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iOS_SDK/OneSignalSDK/OneSignalUser/Source/OSSubscriptionModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public class OSPushSubscriptionChangedState: NSObject {
8282
}
8383

8484
@objc public func jsonRepresentation() -> NSDictionary {
85-
return ["from": previous.jsonRepresentation(), "to": current.jsonRepresentation()]
85+
return ["previous": previous.jsonRepresentation(), "current": current.jsonRepresentation()]
8686
}
8787
}
8888

0 commit comments

Comments
 (0)