Skip to content

Commit

Permalink
#319 - fix findregions query must has draft as false by default
Browse files Browse the repository at this point in the history
  • Loading branch information
malaquiasdev committed Mar 1, 2021
1 parent b142d46 commit 8f6c79f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dynamodb/querys/find-regions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { convertRecordsToObject } from '../utils/convert-records-to-object';
const dynamoDB = new AWS.DynamoDB();

async function findRegions(tableName) {
const statement = `SELECT * FROM "${tableName}" WHERE "draft" = 'true'`;
const statement = `SELECT * FROM "${tableName}" WHERE "draft" = 'false'`;
const { Items } = await dynamoDB.executeStatement({ Statement: statement }).promise();
return convertRecordsToObject(Items);
}
Expand Down

0 comments on commit 8f6c79f

Please sign in to comment.