In 2.7.3,
|
registryObjectRaw.authority = 'SECRETARIAT' |
is not consistent with
For the created organization, Mongoose apparently converts 'SECRETARIAT' to ['SECRETARIAT'] but appendToAuditHistoryForOrg is called with a registryObjectRaw without the change to an array, and there is:
|
audit_object: { type: mongoose.Schema.Types.Mixed, required: true }, |
i.e., the Audit collection stores a document that has data different from the stored BaseOrg document, and that data doesn't comply with BaseOrgSchema.
In 2.7.3,
cve-services/src/repositories/baseOrgRepository.js
Line 436 in 15238d1
is not consistent with
cve-services/src/model/baseorg.js
Line 13 in 15238d1
For the created organization, Mongoose apparently converts
'SECRETARIAT'to['SECRETARIAT']but appendToAuditHistoryForOrg is called with a registryObjectRaw without the change to an array, and there is:cve-services/src/model/audit.js
Line 21 in 15238d1
i.e., the Audit collection stores a document that has data different from the stored BaseOrg document, and that data doesn't comply with BaseOrgSchema.