@8ms/helpers 1.42.11 → 1.42.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,8 +11,8 @@ const loadData = async ({ file, table }) => {
|
|
|
11
11
|
projectId: table.projectId,
|
|
12
12
|
tableId: table.tableId
|
|
13
13
|
})) {
|
|
14
|
-
let bigqueryClient = require_google_bigQuery_getClient({ projectId: table.projectId });
|
|
15
|
-
let storageClient = require_google_storage_getClient({ projectId: file.projectId });
|
|
14
|
+
let bigqueryClient = await require_google_bigQuery_getClient({ projectId: table.projectId });
|
|
15
|
+
let storageClient = await require_google_storage_getClient({ projectId: file.projectId });
|
|
16
16
|
await bigqueryClient.dataset(table.datasetId).table(table.tableId).load(storageClient.bucket(file.bucket).file(file.key), file.metadata);
|
|
17
17
|
}
|
|
18
18
|
};
|
|
@@ -11,8 +11,8 @@ const loadData = async ({ file, table }) => {
|
|
|
11
11
|
projectId: table.projectId,
|
|
12
12
|
tableId: table.tableId
|
|
13
13
|
})) {
|
|
14
|
-
let bigqueryClient = getClient({ projectId: table.projectId });
|
|
15
|
-
let storageClient = getClient$1({ projectId: file.projectId });
|
|
14
|
+
let bigqueryClient = await getClient({ projectId: table.projectId });
|
|
15
|
+
let storageClient = await getClient$1({ projectId: file.projectId });
|
|
16
16
|
await bigqueryClient.dataset(table.datasetId).table(table.tableId).load(storageClient.bucket(file.bucket).file(file.key), file.metadata);
|
|
17
17
|
}
|
|
18
18
|
};
|