Skip to content

Commit

Permalink
Removed excluded check from slow import
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherwxyz committed Nov 30, 2022
1 parent 1353445 commit 1434970
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ssync",
"version": "0.0.19",
"version": "0.0.20",
"description": "Sync a NetSuite environment with a local repository.",
"main": "./dist/app.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/helpers/sdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ const importObjects = async () => {

const importObjectsSlowly = async () => {
// Ephermeral data customizations should not be supported at this time.
const ephermeralCustomizations = env.EXCLUDED.split(',');
const slowlyImportCustomizations = env.SLOW.split(',');
console.log(`Customizations to slowly import: ${slowlyImportCustomizations}`);

CustomObjects.forEach(async (custObject: CustomObject) => {
if (ephermeralCustomizations.includes(custObject.type)) return;
if (custObject.objects[0] === undefined) return;
console.log(`Attempting to import slowly: ${custObject.type} ...`)

if (slowlyImportCustomizations.includes(custObject.type)) {
console.log(`Attempting to import slow ${custObject.type} ...`)

// List all objects
custObject.objects = (await runCommand(CLICommand.ListObjects, `--type ${custObject.type}`))
Expand Down

0 comments on commit 1434970

Please sign in to comment.