syncByCrontime

cddnss.syncByCrontime

Syncs the given records according to the cron expression.

Parameters:

  • cronExpression The cron expression according to which the records should be updated. [string]

  • records The records that should be updated. [Array<Record>]

  • callback The callback that gets called every time the updating was done. [MultiSyncCallback]

Returns:

const scheduledTask: ScheduledTask =
cddnss.syncByCrontime('*/10 * * * * *', records, (recordData: Array<RecordData>) => {
console.log(recordData);
});