Skip to main content

checkOrganizationSlugForAvailability

@svenvw/fdm-source


@svenvw/fdm-source / fdm-core/src / checkOrganizationSlugForAvailability

Function: checkOrganizationSlugForAvailability()

checkOrganizationSlugForAvailability(fdm, organization_slug): Promise<boolean>

Defined in: fdm-core/src/organization.ts:922

Checks if a given organization slug is available (not already in use).

Parameters

fdm

any

The FDM instance providing the connection to the database.

organization_slug

string

The slug to check for availability.

Returns

Promise<boolean>

A promise that resolves with a boolean indicating whether the slug is available. True if available, false if not.

Throws

Throws an error if any database operation fails or if the slug is invalid