removed votes cache transformation

This commit is contained in:
Nouman Tahir 2023-02-23 23:52:40 +05:00
parent 6a7d8452f5
commit c1624a658f

View File

@ -11,13 +11,11 @@ import MigrationHelpers from '../../utils/migrationHelpers';
const transformCacheVoteMap = createTransform(
(inboundState: any) => ({
...inboundState,
votes: Array.from(inboundState.votes),
subscribedCommunities: Array.from(inboundState.subscribedCommunities),
pointActivities: Array.from(inboundState.pointActivities),
}),
(outboundState) => ({
...outboundState,
votes: new Map(outboundState.votes),
subscribedCommunities: new Map(outboundState.subscribedCommunities),
pointActivities: new Map(outboundState.pointActivities),
}),