Commit 12e5f9f
authored
The original check from #302 was not sufficient. When the user passes
`forceCloud: true` to `KVS.open()`, the SDK instance points to a
platform-backed KVS, even if the script is run locally.
This PR proposes checking the runtime type of `KeyValueStore.client`. If
this is a client instance from `apify-client`, we're communicating with
the platform, regardless of the place of execution (Platform / locally).
Closes #459
1 parent 6e48b85 commit 12e5f9f
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| |||
0 commit comments