From 4ab287590f4fd6aef8986b6685ca87eda368cc50 Mon Sep 17 00:00:00 2001 From: Karim Date: Fri, 2 Jun 2017 19:22:10 +0200 Subject: [PATCH] fix issue readme, replace non-existent method addRecord() with addRecords() (#2339) --- README.md | 2 +- packages/dns/README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5f0c52e8ff2..2a2e5156ea0 100644 --- a/README.md +++ b/README.md @@ -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) {}); diff --git a/packages/dns/README.md b/packages/dns/README.md index c42a3f3a91d..a18ba509762 100644 --- a/packages/dns/README.md +++ b/packages/dns/README.md @@ -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]; });