Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/agent-provisioning/src/agent-provisioning.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class AgentProvisioningService {
try {

const { containerName, externalIp, orgId, seed, walletName, walletPassword, walletStorageHost, walletStoragePassword, walletStoragePort, walletStorageUser, webhookEndpoint, agentType, protocol, credoImage, tenant, indyLedger, inboundEndpoint } = payload;
if (agentType === AgentType.AFJ) {
if (agentType === AgentType.Credo) {
// The wallet provision command is used to invoke a shell script
const walletProvision = `${process.cwd() + process.env.AFJ_AGENT_SPIN_UP} ${orgId} "${externalIp}" "${walletName}" "${walletPassword}" ${seed} ${webhookEndpoint} ${walletStorageHost} ${walletStoragePort} ${walletStorageUser} ${walletStoragePassword} ${containerName} ${protocol} ${tenant} ${credoImage} "${indyLedger}" ${inboundEndpoint} ${process.env.SCHEMA_FILE_SERVER_URL} ${process.env.AGENT_HOST} ${process.env.AWS_ACCOUNT_ID} ${process.env.S3_BUCKET_ARN} ${process.env.CLUSTER_NAME} ${process.env.TESKDEFINITION_FAMILY}`;
const spinUpResponse: object = new Promise(async (resolve) => {
Expand Down
4 changes: 2 additions & 2 deletions apps/agent-service/src/agent-service.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export class AgentServiceService {
walletStoragePassword: process.env.WALLET_STORAGE_PASSWORD || '',
inboundEndpoint,
containerName: orgData.name.split(' ').join('_'),
agentType: AgentType.AFJ,
agentType: AgentType.Credo,
orgName: orgData?.name,
indyLedger: escapedJsonString,
credoImage: process.env.AFJ_VERSION || '',
Expand Down Expand Up @@ -862,7 +862,7 @@ export class AgentServiceService {
// Get shared agent type
const orgAgentTypeId = await this.agentServiceRepository.getOrgAgentTypeDetails(OrgAgentType.SHARED);
// Get agent type details
const agentTypeId = await this.agentServiceRepository.getAgentTypeId(AgentType.AFJ);
const agentTypeId = await this.agentServiceRepository.getAgentTypeId(AgentType.Credo);

const storeOrgAgentData: IStoreOrgAgentDetails = {
did: tenantDetails.DIDCreationOption.did,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export class AgentServiceRepository {
try {
const { id } = await this.prisma.agents_type.findFirstOrThrow({
where: {
agent: AgentType.AFJ
agent: AgentType.Credo
}
});
return id;
Expand Down
3 changes: 1 addition & 2 deletions libs/enum/src/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export enum CredDefSortFields {
}

export enum AgentType {
// TODO: Change to Credo
AFJ = 'AFJ',
Credo = 'Credo',
ACAPY = 'ACAPY'
}

Expand Down