Skip to content

Commit aa2c6ad

Browse files
Abdelcadir KarimAbdelcadir Karim
authored andcommitted
replace addRecord() with addRecords()
1 parent 0163c79 commit aa2c6ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/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)