Skip to content

Commit

Permalink
fix issue readme, replace non-existent method addRecord() with addRec…
Browse files Browse the repository at this point in the history
…ords() (#2339)
  • Loading branch information
kinotto authored and swcloud committed Jun 2, 2017
1 parent 3370862 commit 4ab2875
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ 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) {});
Expand Down
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 4ab2875

Please sign in to comment.