Skip to content

Commit

Permalink
fix: org Uid for maker
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Sep 13, 2022
1 parent b5e03a8 commit 766d8e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/models/staging/staging.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class Staging extends Model {

const newMakerWarehouseProjectId = uuidv4();
makerProjectRecord.warehouseProjectId = newMakerWarehouseProjectId;
makerProjectRecord.orgUid = myOrganization.orgUid;

// Out of time so just hard coding this
const projectChildRecords = [
Expand All @@ -99,6 +100,7 @@ class Staging extends Model {
if (makerProjectRecord[childRecordSet]) {
makerProjectRecord[childRecordSet].forEach((childRecord) => {
childRecord.warehouseProjectId = newMakerWarehouseProjectId;
childRecord.orgUid = myOrganization.orgUid;
});
}
});
Expand Down Expand Up @@ -126,6 +128,7 @@ class Staging extends Model {
unitTakerRecords = unitTakerRecords.map((record) => {
record.unitStatus = 'Exported';
record.warehouseUnitId = uuidv4();
record.orgUid = myOrganization.orgUid;
return record;
});

Expand Down

0 comments on commit 766d8e0

Please sign in to comment.