syncCatalogues
@nmi-agro/fdm-source / fdm-core/src / syncCatalogues
Function: syncCatalogues()
syncCatalogues(
fdm,options?):Promise<void>
Defined in: fdm-core/src/catalogues.ts:657
Synchronizes the fertilizer, cultivation, and optionally measures catalogues in the FDM database.
Parameters
fdm
PgDatabase
The FDM instance providing the connection to the database. The instance can be created with createFdmServer.
options?
Optional configuration. Provide nmiApiKey to also sync the measures catalogue from the NMI API.
nmiApiKey?
string
Returns
Promise<void>
A promise that resolves when the synchronization is complete.