Skip to content

Commit

Permalink
fix(sfporg): revert incorrect replacement of sfp artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
sfopsbot committed Dec 19, 2023
1 parent b188c56 commit 6172fe5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/sfp-cli/src/core/org/SFPOrg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ export default class SFPOrg extends Org {
public async getInstalledArtifacts(orderBy: string = `CreatedDate`,logger?:Logger) {
let records=[]
try {
records = await QueryHelper.query<sfpArtifact2__c>(
`SELECT Id, Name, CommitId__c, Version__c, Tag__c FROM sfpArtifact2__c ORDER BY ${orderBy} ASC`,
records = await QueryHelper.query<SfpowerscriptsArtifact2__c>(
`SELECT Id, Name, CommitId__c, Version__c, Tag__c FROM SfpowerscriptsArtifact2__c ORDER BY ${orderBy} ASC`,
this.getConnection(),
false
);
return records;
} catch (error) {
SFPLogger.log(
'Unable to fetch any sfp artifacts in the org\n' +
'1. sfp package is not installed in the org\n' +
'1. sfpowerscripts artifact package is not installed in the org\n' +
'2. The required prerequisite object is not deployed to this org\n',
LoggerLevel.WARN,
logger
Expand Down Expand Up @@ -91,7 +91,7 @@ export default class SFPOrg extends Org {
if (artifactId == null) {
artifactId = await ObjectCRUDHelper.createRecord(
this.getConnection(),
'sfpArtifact2__c',
'SfpowerscriptsArtifact2__c',
{
Name: packageName,
Tag__c: sfpPackage.tag,
Expand All @@ -102,7 +102,7 @@ export default class SFPOrg extends Org {
} else {
artifactId = await ObjectCRUDHelper.updateRecord(
this.getConnection(),
'sfpArtifact2__c',
'SfpowerscriptsArtifact2__c',
{
Id: artifactId,
Name: packageName,
Expand Down Expand Up @@ -253,7 +253,7 @@ export interface InstalledArtifact {
isInstalledBysfp?: boolean;
}

export interface sfpArtifact2__c {
export interface SfpowerscriptsArtifact2__c {
Id?: string;
Name: string;
Tag__c: string;
Expand Down

0 comments on commit 6172fe5

Please sign in to comment.