Skip to content

Commit fb23e21

Browse files
Merge pull request #768 from contentstack/dev
Dev
2 parents 8c413b2 + 442c9e1 commit fb23e21

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.talismanrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,6 @@ fileignoreconfig:
9393
checksum: fbc0612dda1894fd55455c4adaa4b7016b01a73e5d4093a3a9dad471b434c2ec
9494
- filename: api/src/services/sitecore.service.ts
9595
checksum: ceaed6417b1b6fd2581f547cbc7e871900ecbae5557496b26f025781f323ba82
96+
- filename: api/src/services/globalField.service.ts
97+
checksum: fbc0612dda1894fd55455c4adaa4b7016b01a73e5d4093a3a9dad471b434c2ec
9698
version: "1.0"

upload-api/src/controllers/sitecore/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const createLocaleSource = async ({
4040
'Content-Type': 'application/json',
4141
},
4242
data: {
43-
locale: Array.isArray(localeData) ? localeData : (localeData ? [localeData] : []),
43+
locale: Array.isArray(localeData) ? localeData : Array.from(localeData ?? [])
4444
},
4545
};
4646

@@ -120,6 +120,7 @@ const sendRequestWithRetry = async <T = any>(params: RequestParams): Promise<Axi
120120
const createSitecoreMapper = async (filePath: string = "", projectId: string | string[], app_token: string | string[], affix: string | string[], config: object) => {
121121
try {
122122
const newPath = path.join(filePath, 'items');
123+
console.log("🚀 ~ createSitecoreMapper ~ newPath:", newPath)
123124
await ExtractFiles(newPath);
124125
const localeData = await extractLocales(path.join(filePath, 'items', 'master', 'sitecore', 'content'));
125126
await createLocaleSource?.({ app_token, localeData, projectId });

0 commit comments

Comments
 (0)