migrateSlugAndOrgUrlKey

Function

Ensures that the orgUrlKey and slug fields of the entity are lowercase. Used in migrations to address a bug with orgs with mixed case orgUrlKeys.

  • migrateSlugAndOrgUrlKey(slug: string, orgUrlKey: string, typeKeywords: string[]) : {
    orgUrlKey:
    string
    slug:
    string
    typeKeywords:
    string[]
    }

Parameters

Parameter Type Default Notes
slug Required string
orgUrlKey Required string
typeKeywords Required string[]

Returns

{
orgUrlKey:
string
slug:
string
typeKeywords:
string[]
}

Function defined in common/src/core/_internal/sharedMigrations.ts:7