Skip to content

Commit

Permalink
fix: build storage classes by using this instead of the class (#1596)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu committed Oct 13, 2022
1 parent f8755b6 commit 2b14eb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/storages/dataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ export class Dataset<Data extends Dictionary = Dictionary> {
}));
options.config ??= Configuration.getGlobalConfig();
await purgeDefaultStorages();
const manager = StorageManager.getManager<Dataset<Data>>(Dataset, options.config);
const manager = StorageManager.getManager<Dataset<Data>>(this, options.config);

return manager.openStorage(datasetIdOrName, options.config.getStorageClient());
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/storages/key_value_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export class KeyValueStore {
config: ow.optional.object.instanceOf(Configuration),
}));
await purgeDefaultStorages();
const manager = StorageManager.getManager(KeyValueStore, options.config);
const manager = StorageManager.getManager(this, options.config);

return manager.openStorage(storeIdOrName);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/storages/request_queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ export class RequestQueue {
}));

await purgeDefaultStorages();
const manager = StorageManager.getManager(RequestQueue, options.config);
const manager = StorageManager.getManager(this, options.config);

return manager.openStorage(queueIdOrName);
}
Expand Down

0 comments on commit 2b14eb7

Please sign in to comment.