remove need for index from dynamo connector
This commit is contained in:
parent
208ec7183a
commit
1e179fec76
|
@ -169,14 +169,12 @@ module DynamoModule {
|
||||||
IndexName: query.index ? query.index : undefined,
|
IndexName: query.index ? query.index : undefined,
|
||||||
...query.json,
|
...query.json,
|
||||||
}
|
}
|
||||||
if (query.index) {
|
|
||||||
const response = await this.client.query(params).promise()
|
const response = await this.client.query(params).promise()
|
||||||
if (response.Items) {
|
if (response.Items) {
|
||||||
return response.Items
|
return response.Items
|
||||||
}
|
}
|
||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
async scan(query: { table: string; json: object; index: null | string }) {
|
async scan(query: { table: string; json: object; index: null | string }) {
|
||||||
const params = {
|
const params = {
|
||||||
|
|
Loading…
Reference in New Issue