Skip to content

Commit

Permalink
replace addRecord() with addRecords()
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdelcadir Karim authored and Abdelcadir Karim committed May 30, 2017
1 parent 0163c79 commit aa2c6ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ var nsRecord = zone.record('ns', {
data: 'ns-cloud1.googledomains.com.'
});

zone.addRecord(nsRecord, function(err, change) {});
zone.addRecords([nsRecord], function(err, change) {});

// Create a zonefile from the records in your zone.
zone.export('/zonefile.zone', function(err) {});

// Promises are also supported by omitting callbacks.
zone.addRecords(nsRecord).then(function(data) {
zone.addRecords([nsRecord]).then(function(data) {
var change = data[0];
});

Expand Down

0 comments on commit aa2c6ad

Please sign in to comment.