Skip to content

Commit caa9117

Browse files
kinottoswcloud
authored andcommitted
fix issue readme, replace non-existent method addRecord() with addRecords() (#2339)
1 parent 131fd59 commit caa9117

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/google-cloud-dns/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ var nsRecord = zone.record('ns', {
3131
data: 'ns-cloud1.googledomains.com.'
3232
});
3333

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

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

3939
// Promises are also supported by omitting callbacks.
40-
zone.addRecords(nsRecord).then(function(data) {
40+
zone.addRecords([nsRecord]).then(function(data) {
4141
var change = data[0];
4242
});
4343

0 commit comments

Comments
 (0)