Skip to content

Commit

Permalink
NOBUG - adding default Audit table name to dynamodb layer
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronpettit committed Oct 9, 2024
1 parent 678c132 commit 6210f7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layers/awsUtils/dynamodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const { marshall, unmarshall } = require('@aws-sdk/util-dynamodb');
const { logger } = require('/opt/base');

const TABLE_NAME = process.env.TABLE_NAME || 'reserve-rec';
const AUDIT_TABLE_NAME = process.env.UDIT_TABLE_NAME || 'Audit';
const AWS_REGION = process.env.AWS_REGION || 'ca-central-1';
const DYNAMODB_ENDPOINT_URL = process.env.DYNAMODB_ENDPOINT_URL || 'http://localhost:8000';
const USER_ID_PARTITION = 'userid';
Expand Down Expand Up @@ -231,6 +232,7 @@ async function batchTransactData(data, action = 'Put') {
}

module.exports = {
AUDIT_TABLE_NAME,
AWS_REGION,
PutItemCommand,
QueryCommand,
Expand Down

0 comments on commit 6210f7d

Please sign in to comment.