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 131fd59 commit caa9117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-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 caa9117

Please sign in to comment.