Skip to content

Commit

Permalink
Added missing await.
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-richards authored Feb 25, 2024
1 parent 14c1bfd commit 7e8f5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bptf-autopricer.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const updateFromSnapshot = async (name, sku) => {
if (!alwaysQuerySnapshotAPI) {
// Check if required number of listings already exist in database for item.
// If not we need to query the snapshots API.
let callSnapshot = countListingsForItem(name);
let callSnapshot = await countListingsForItem(name);
if(callSnapshot) {
// Get listings from snapshot API.
let unformatedListings = await Methods.getListingsFromSnapshots(name);
Expand Down

0 comments on commit 7e8f5c5

Please sign in to comment.