diff --git a/netxQueries/fullRecordPeriodicSync.sql b/netxQueries/fullRecordPeriodicSync.sql index aa5af6c..712359f 100644 --- a/netxQueries/fullRecordPeriodicSync.sql +++ b/netxQueries/fullRecordPeriodicSync.sql @@ -27,13 +27,8 @@ CROSS JOIN LATERAL( "suffix" FROM constituent_records - INNER JOIN object_constituent_mappings ON - constituent_records."constituentID" = object_constituent_mappings."constituentRecordId" - AND - constituent_records."objectId" = object_constituent_mappings."objectId" WHERE - object_constituent_mappings."objectId" = main_object_information."objectId" - AND object_constituent_mappings."constituentRecordId" = constituent_records."constituentID" + constituent_records."objectId" = main_object_information."objectId" ) "constituentInfo" WHERE "renditionNumber" IN ( diff --git a/netxQueries/fullRecordSingleSync.sql b/netxQueries/fullRecordSingleSync.sql index 6f2bb63..5afbefa 100644 --- a/netxQueries/fullRecordSingleSync.sql +++ b/netxQueries/fullRecordSingleSync.sql @@ -28,12 +28,8 @@ CROSS JOIN ( "suffix" FROM constituent_records - INNER JOIN object_constituent_mappings ON - constituent_records."constituentID" = object_constituent_mappings."constituentRecordId" - AND - constituent_records."objectId" = object_constituent_mappings."objectId" WHERE - object_constituent_mappings."objectId" = ( + constituent_records."objectId" = ( SELECT "objectId" FROM diff --git a/package.json b/package.json index 9bf65c6..5e345b6 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "watch": "tsc -w", "start": "node dist/app.js", "build": "npm run compile && pkg . --target node12-win", - "postbuild": "zip dams-sync.zip .env dams-sync-win.exe", + "postbuild": "zip dams-sync.zip dams-sync.exe", "lint": "eslint --config .eslintrc.js src --ext .ts --fix" }, "author": "Christopher D Jativa",