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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Low Priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions