Skip to content

Commit 76c50a4

Browse files
author
Stan van Heumen
authored
Fixes 'bigquery.dataset' is not a function error
Fixes 'bigquery.dataset' is not a function error after deploying and running the function.
1 parent cc11c71 commit 76c50a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bigquery-import/functions/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
'use strict';
1717

1818
const functions = require('firebase-functions');
19-
const bigquery = require('@google-cloud/bigquery');
19+
const bigquery = require('@google-cloud/bigquery')();
2020

2121
/**
2222
* Writes all logs from the Realtime Database into bigquery.

0 commit comments

Comments
 (0)