Skip to content

Commit b454fd4

Browse files
authored
Merge pull request #348 from qonversion/fix/remoteConfigPayloadType
Fixed wrong remote config payload type.
2 parents 58c811c + b1f0586 commit b454fd4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/dto/RemoteConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import Experiment from "./Experiment";
22
import RemoteConfigurationSource from "./RemoteConfigurationSource";
33

44
class RemoteConfig {
5-
payload: Map<string, Object>;
5+
payload: Record<string, Object>;
66
experiment?: Experiment | null;
77
source: RemoteConfigurationSource;
88

9-
constructor(payload: Map<string, Object>, experiment: Experiment | null, source: RemoteConfigurationSource) {
9+
constructor(payload: Record<string, Object>, experiment: Experiment | null, source: RemoteConfigurationSource) {
1010
this.payload = payload;
1111
this.experiment = experiment;
1212
this.source = source;

src/internal/Mapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ type QUser = {
262262
};
263263

264264
type QRemoteConfig = {
265-
payload: Map<string, Object>;
265+
payload: Record<string, Object>;
266266
experiment?: QExperiment | null;
267267
source: QRemoteConfigurationSource;
268268
};

0 commit comments

Comments
 (0)