Skip to content

Commit

Permalink
fix: forbid scans of bucket tables
Browse files Browse the repository at this point in the history
  • Loading branch information
mvayngrib committed Nov 24, 2017
1 parent a2a81d2 commit 9447ec1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/db.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/samplebot/strategy/products.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export = function createDB (opts: {
objects,
docClient: aws.docClient,
maxItemSize: constants.MAX_DB_ITEM_SIZE,
forbidScan: true,
defaultReadOptions: {
consistentRead: true
}
Expand Down
2 changes: 1 addition & 1 deletion src/samplebot/strategy/products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const USE_ONFIDO = false
export default function createProductsBot (opts={}) {
const {
conf,
onfido,
onfido={},
bot,
models=baseModels,
products=DEFAULT_PRODUCTS,
Expand Down

0 comments on commit 9447ec1

Please sign in to comment.