Skip to content

Commit bbecabc

Browse files
committed
entity builder refactor
1 parent 8aeccb7 commit bbecabc

File tree

10 files changed

+102
-191
lines changed

10 files changed

+102
-191
lines changed

infrastructure/terraform/modules/backend-api/module_lambda_send_letter_proof.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module "lambda_send_letter_proof" {
2121
INTERNAL_BUCKET_NAME = module.s3bucket_internal.id
2222
NODE_OPTIONS = "--enable-source-maps",
2323
REGION = var.region
24-
SEND_LOCK_TTL_MS = 50 * 1000 // visibility timeout 60s
24+
SEND_LOCK_TTL_MS = 50 * 1000
2525
SFTP_ENVIRONMENT = local.sftp_environment
2626
TEMPLATES_TABLE_NAME = aws_dynamodb_table.templates.name
2727
}

utils/entity-update-command-builder/src/__tests__/common/condition-builder.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ describe('ConditionBuilder', () => {
154154
const func = 'begins_with';
155155

156156
const condition = new ConditionBuilder<Record<string, string>>()
157-
.fn(attribute, secondArgument, func)
157+
.fn(attribute, func, secondArgument)
158158
.build();
159159

160160
expect(condition).toEqual([
@@ -173,7 +173,7 @@ describe('ConditionBuilder', () => {
173173
'adds correct joiner when chained with %s method',
174174
(joiner) => {
175175
const attribute1 = 'ATTRIBUTE1';
176-
const secondArg1 = null;
176+
const secondArg1 = undefined;
177177
const operator1 = 'attribute_exists';
178178

179179
const attribute2 = 'ATTRIBUTE2';
@@ -182,7 +182,7 @@ describe('ConditionBuilder', () => {
182182

183183
const conditionBuilder = new ConditionBuilder<
184184
Record<string, string>
185-
>().fn(attribute1, secondArg1, operator1, true);
185+
>().fn(attribute1, operator1, secondArg1, true);
186186

187187
switch (joiner) {
188188
case 'AND': {

0 commit comments

Comments
 (0)