Skip to content

Commit

Permalink
Merge pull request #348 from qonversion/fix/remoteConfigPayloadType
Browse files Browse the repository at this point in the history
Fixed wrong remote config payload type.
  • Loading branch information
SpertsyanKM authored Jan 16, 2025
2 parents 58c811c + b1f0586 commit b454fd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/dto/RemoteConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import Experiment from "./Experiment";
import RemoteConfigurationSource from "./RemoteConfigurationSource";

class RemoteConfig {
payload: Map<string, Object>;
payload: Record<string, Object>;
experiment?: Experiment | null;
source: RemoteConfigurationSource;

constructor(payload: Map<string, Object>, experiment: Experiment | null, source: RemoteConfigurationSource) {
constructor(payload: Record<string, Object>, experiment: Experiment | null, source: RemoteConfigurationSource) {
this.payload = payload;
this.experiment = experiment;
this.source = source;
Expand Down
2 changes: 1 addition & 1 deletion src/internal/Mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ type QUser = {
};

type QRemoteConfig = {
payload: Map<string, Object>;
payload: Record<string, Object>;
experiment?: QExperiment | null;
source: QRemoteConfigurationSource;
};
Expand Down

0 comments on commit b454fd4

Please sign in to comment.