Skip to content

Commit

Permalink
fix: init agent props
Browse files Browse the repository at this point in the history
  • Loading branch information
bao-sotatek committed May 7, 2024
1 parent 4b68285 commit 06520a4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/core/agent/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ class Agent {
"https://dev.keria-boot.cf-keripy.metadata.dev.cf-deployments.org";

private static instance: Agent;
private agentServicesProps!: AgentServicesProps;

private storageSession!: SqliteSession | IonicSession;

private basicStorageService!: BasicStorage;
Expand All @@ -68,6 +66,11 @@ class Agent {
private credentialService!: CredentialService;
private signifyNotificationService!: SignifyNotificationService;

private agentServicesProps: AgentServicesProps = {
signifyClient: this.signifyClient,
eventService: new EventService(),
};

get identifiers() {
if (!this.identifierService) {
this.identifierService = new IdentifierService(
Expand Down Expand Up @@ -187,10 +190,6 @@ class Agent {
this.notificationStorage = new NotificationStorage(
this.getStorageService<NotificationRecord>(this.storageSession)
);
this.agentServicesProps = {
signifyClient: this.signifyClient,
eventService: new EventService(),
};
Agent.ready = true;
}
}
Expand Down

0 comments on commit 06520a4

Please sign in to comment.