Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Champion authored Aug 11, 2023
1 parent 36d1569 commit 58bdcd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/javascript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function get(store_name, request) {

const metadataPath = path + '__metadata__'

let metadata = await (new ObjectStore(store_name)).get(metadataPath)
let metadata = await (new KVStore(store_name)).get(metadataPath)
if (metadata == null) {
return null
}
Expand All @@ -39,7 +39,7 @@ export async function get(store_name, request) {
return response;
}

const item = await (new ObjectStore(store_name)).get(path)
const item = await (new KVStore(store_name)).get(path)

if (item == null) {
return null
Expand Down Expand Up @@ -339,4 +339,4 @@ function ifRange(validationFields, header) {
// 2. Otherwise, the condition is false.
return false;
}
}
}

0 comments on commit 58bdcd4

Please sign in to comment.