Skip to content

Commit 6172fe5

Browse files
author
sfopsbot
committedDec 19, 2023
fix(sfporg): revert incorrect replacement of sfp artifact
1 parent b188c56 commit 6172fe5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎packages/sfp-cli/src/core/org/SFPOrg.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ export default class SFPOrg extends Org {
1414
public async getInstalledArtifacts(orderBy: string = `CreatedDate`,logger?:Logger) {
1515
let records=[]
1616
try {
17-
records = await QueryHelper.query<sfpArtifact2__c>(
18-
`SELECT Id, Name, CommitId__c, Version__c, Tag__c FROM sfpArtifact2__c ORDER BY ${orderBy} ASC`,
17+
records = await QueryHelper.query<SfpowerscriptsArtifact2__c>(
18+
`SELECT Id, Name, CommitId__c, Version__c, Tag__c FROM SfpowerscriptsArtifact2__c ORDER BY ${orderBy} ASC`,
1919
this.getConnection(),
2020
false
2121
);
2222
return records;
2323
} catch (error) {
2424
SFPLogger.log(
2525
'Unable to fetch any sfp artifacts in the org\n' +
26-
'1. sfp package is not installed in the org\n' +
26+
'1. sfpowerscripts artifact package is not installed in the org\n' +
2727
'2. The required prerequisite object is not deployed to this org\n',
2828
LoggerLevel.WARN,
2929
logger
@@ -91,7 +91,7 @@ export default class SFPOrg extends Org {
9191
if (artifactId == null) {
9292
artifactId = await ObjectCRUDHelper.createRecord(
9393
this.getConnection(),
94-
'sfpArtifact2__c',
94+
'SfpowerscriptsArtifact2__c',
9595
{
9696
Name: packageName,
9797
Tag__c: sfpPackage.tag,
@@ -102,7 +102,7 @@ export default class SFPOrg extends Org {
102102
} else {
103103
artifactId = await ObjectCRUDHelper.updateRecord(
104104
this.getConnection(),
105-
'sfpArtifact2__c',
105+
'SfpowerscriptsArtifact2__c',
106106
{
107107
Id: artifactId,
108108
Name: packageName,
@@ -253,7 +253,7 @@ export interface InstalledArtifact {
253253
isInstalledBysfp?: boolean;
254254
}
255255

256-
export interface sfpArtifact2__c {
256+
export interface SfpowerscriptsArtifact2__c {
257257
Id?: string;
258258
Name: string;
259259
Tag__c: string;

0 commit comments

Comments
 (0)
Please sign in to comment.