working on code breakup
Build and Push Image / build-and-push (push) Failing after 21s

This commit is contained in:
2026-05-02 23:29:32 -07:00
parent 749fe95903
commit b39fc6e7db
6 changed files with 103 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import csvParser from './csvParser.js';
import apiClient from './apiClient.js';
import config from './config.js';
export async function processCollections(filePath) {
try {
const items = await csvParser.parseCsv(filePath);
for (const item of items) {
console.log(`Processing item: ${item.name} (Product ID: ${item.productId})`);
// Perform API call to create collection (using apiClient)
// ... Create your collection API call here ...
// Use item.productId in your API call.
// Download image (using imageDownloader)
// ...
}
console.log("All collections processed successfully!");
} catch (error) {
console.error("Error processing collections:", error);
}
}