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:
The data of the DNS records
[
ScheduledTask
]
const scheduledTask: ScheduledTask =
cddnss.syncByCrontime('*/10 * * * * *', records, (recordData: Array<RecordData>) => {
console.log(recordData);
});
Last updated
Was this helpful?