diff --git a/AUTHORS b/AUTHORS index ecc2c3e512b1..de11c6bbc02c 100644 --- a/AUTHORS +++ b/AUTHORS @@ -25,3 +25,4 @@ Tuyển Vũ Xuân Sarthak Verma Mike Diarmid Invertase +Rishab Nayak diff --git a/packages/cloud_functions/lib/cloud_functions.dart b/packages/cloud_functions/lib/cloud_functions.dart index 92ede2c33184..7f18d08d074d 100644 --- a/packages/cloud_functions/lib/cloud_functions.dart +++ b/packages/cloud_functions/lib/cloud_functions.dart @@ -22,7 +22,7 @@ class CloudFunctionsException implements Exception { class CloudFunctions { CloudFunctions({FirebaseApp app, String region}) : _app = app ?? FirebaseApp.instance, - _region = region; + _region = region ?? "us-central1"; @visibleForTesting static const MethodChannel channel = MethodChannel('cloud_functions'); diff --git a/packages/cloud_functions/test/cloud_functions_test.dart b/packages/cloud_functions/test/cloud_functions_test.dart index 8fc18cb6db65..d7650891915d 100644 --- a/packages/cloud_functions/test/cloud_functions_test.dart +++ b/packages/cloud_functions/test/cloud_functions_test.dart @@ -41,7 +41,7 @@ void main() { 'CloudFunctions#call', arguments: { 'app': '[DEFAULT]', - 'region': null, + 'region': 'us-central1', 'functionName': 'baz', 'parameters': null, },