From 070bc8f1c73e159bd98a52dd4d7f5be8e2c8952c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCntter=20Gotha?= Date: Tue, 11 Feb 2020 00:10:37 +0200 Subject: [PATCH] batchGet pass param fix batchGet({ ranges: 'A-Z' }) call always returned 400 error because the argument object was not correctly passed. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 843dc4c..b1c92f3 100644 --- a/index.js +++ b/index.js @@ -104,7 +104,7 @@ class ReactNativeGoogleSheet { return response; } - async batchGet(...arg) { + async batchGet(arg) { const { dateTimeRenderOption, majorDimension, ranges = 'A:Z', valueRenderOption, ...rest } = arg; const { accessToken, spreadsheetId } = this; const params = {