syncByCrontime
cddnss.syncByCrontime
Syncs the given records according to the cron expression.
Parameters:
cronExpressionThe cron expression according to which the records should be updated.[string]recordsThe records that should be updated.[Array<Record>]callbackThe 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?