disableMeasureCatalogue
@nmi-agro/fdm-source / fdm-core/src / disableMeasureCatalogue
Function: disableMeasureCatalogue()
disableMeasureCatalogue(
fdm,principal_id,b_id_farm,m_source):Promise<void>
Defined in: fdm-core/src/catalogues.ts:570
Disables a measure catalogue for a farm.
Parameters
fdm
PgDatabase
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.
m_source
string
The source/name of the measure catalogue to disable.
Returns
Promise<void>
A Promise that resolves when the catalogue has been disabled.
Throws
If disabling the catalogue fails.