Function: enableCultivationCatalogue()
enableCultivationCatalogue(
fdm
,principal_id
,b_id_farm
,b_lu_source
):Promise
<void
>
Defined in: fdm-core/src/catalogues.ts:146
Enables a cultivation catalogue for a farm.
Parameters
fdm
any
The FDM instance providing the connection to the database. The instance can be created with createFdmServer.
principal_id
any
The ID of the principal making the request.
b_id_farm
any
The ID of the farm.
b_lu_source
string
The source/name of the cultivation catalogue to enable.
Returns
Promise
<void
>
A Promise that resolves when the catalogue has been enabled.
Throws
If enabling the catalogue fails.