Skip to content

Commit b367c17

Browse files
committed
fix: correct typo in success message for file validation
1 parent e551b71 commit b367c17

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
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 : Array.from(localeData ?? []),
43+
locale: Array.isArray(localeData) ? localeData : (localeData ? [localeData] : []),
4444
},
4545
};
4646

@@ -120,7 +120,6 @@ 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)
124123
await ExtractFiles(newPath);
125124
const localeData = await extractLocales(path.join(filePath, 'items', 'master', 'sitecore', 'content'));
126125
await createLocaleSource?.({ app_token, localeData, projectId });

upload-api/src/routes/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ router.get('/validator', express.json(), fileOperationLimiter, async function (r
219219

220220
const data = await handleFileProcessing(fileExt, zipBuffer, cmsType, fileName);
221221
res.json(data);
222-
res.send('file valited sucessfully.');
222+
res.send('file validated successfully.');
223223
let filePath = path.join(__dirname, '..', '..', 'extracted_files', fileName);
224224
if (data?.file !== undefined) {
225225
filePath = path.join(__dirname, '..', '..', 'extracted_files', fileName, data?.file);

0 commit comments

Comments
 (0)