Skip to content

authority = 'SECRETARIAT' does not comply with BaseOrgSchema #1729

@ElectricNroff

Description

@ElectricNroff

In 2.7.3,

registryObjectRaw.authority = 'SECRETARIAT'

is not consistent with
authority: [String],

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status
In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions