Skip to content

Commit

Permalink
fix: Error: client.readOnly is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Feb 23, 2020
1 parent 8f28995 commit 6069499
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ class PreAggregationLoader {
return (client) => {
let refreshStrategy = this.refreshImplStoreInSourceStrategy;
if (this.preAggregation.external) {
refreshStrategy = client.readOnly() ? this.refreshImplStreamExternalStrategy : this.refreshImplTempTableExternalStrategy;
refreshStrategy = client.readOnly && client.readOnly() ?
this.refreshImplStreamExternalStrategy : this.refreshImplTempTableExternalStrategy;
}
const resultPromise = refreshStrategy.bind(this)(client, newVersionEntry);
resultPromise.cancel = () => {} // TODO implement cancel (loading rollup into table and external upload)
Expand Down

0 comments on commit 6069499

Please sign in to comment.