File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
src/app/domain/entityStore/entities Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ export async function putRunEventIfNoKeyExistsOrNewerThanExisting(
45
45
event : GithubWorkflowRunEvent
46
46
) {
47
47
return await store ( entityStore ) . put ( event , {
48
- conditionExpression : 'attribute_not_exists(PK) OR #updatedAt < :newUpdatedAt ' ,
49
- expressionAttributeNames : { '#updatedAt ' : 'updatedAt ' } ,
50
- expressionAttributeValues : { ':newUpdatedAt ' : event . runEventUpdatedAt }
48
+ conditionExpression : 'attribute_not_exists(PK) OR #runEventUpdatedAt < :newRunEventUpdatedAt ' ,
49
+ expressionAttributeNames : { '#runEventUpdatedAt ' : 'runEventUpdatedAt ' } ,
50
+ expressionAttributeValues : { ':newRunEventUpdatedAt ' : event . runEventUpdatedAt }
51
51
} )
52
52
}
53
53
Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ export async function putGithubWorkflowRunfNoKeyExistsOrNewerThanExisting(
60
60
event : GithubWorkflowRunEvent
61
61
) {
62
62
return await store ( entityStore ) . put ( event , {
63
- conditionExpression : 'attribute_not_exists(PK) OR #updatedAt < :newUpdatedAt ' ,
64
- expressionAttributeNames : { '#updatedAt ' : 'updatedAt ' } ,
65
- expressionAttributeValues : { ':newUpdatedAt ' : event . runEventUpdatedAt }
63
+ conditionExpression : 'attribute_not_exists(PK) OR #runEventUpdatedAt < :newRunEventUpdatedAt ' ,
64
+ expressionAttributeNames : { '#runEventUpdatedAt ' : 'runEventUpdatedAt ' } ,
65
+ expressionAttributeValues : { ':newRunEventUpdatedAt ' : event . runEventUpdatedAt }
66
66
} )
67
67
}
68
68
Original file line number Diff line number Diff line change @@ -99,12 +99,12 @@ export function expectedPutGithubWorkflowRun(event: GithubWorkflowRunEvent) {
99
99
...event
100
100
} ,
101
101
{
102
- ConditionExpression : 'attribute_not_exists(PK) OR #updatedAt < :newUpdatedAt ' ,
102
+ ConditionExpression : 'attribute_not_exists(PK) OR #runEventUpdatedAt < :newRunEventUpdatedAt ' ,
103
103
ExpressionAttributeNames : {
104
- '#updatedAt ' : 'updatedAt '
104
+ '#runEventUpdatedAt ' : 'runEventUpdatedAt '
105
105
} ,
106
106
ExpressionAttributeValues : {
107
- ':newUpdatedAt ' : event . runEventUpdatedAt
107
+ ':newRunEventUpdatedAt ' : event . runEventUpdatedAt
108
108
}
109
109
}
110
110
)
@@ -122,12 +122,12 @@ export function expectedPutLatestGithubWorkflowRunEvent(event: GithubWorkflowRun
122
122
...event
123
123
} ,
124
124
{
125
- ConditionExpression : 'attribute_not_exists(PK) OR #updatedAt < :newUpdatedAt ' ,
125
+ ConditionExpression : 'attribute_not_exists(PK) OR #runEventUpdatedAt < :newRunEventUpdatedAt ' ,
126
126
ExpressionAttributeNames : {
127
- '#updatedAt ' : 'updatedAt '
127
+ '#runEventUpdatedAt ' : 'runEventUpdatedAt '
128
128
} ,
129
129
ExpressionAttributeValues : {
130
- ':newUpdatedAt ' : event . runEventUpdatedAt
130
+ ':newRunEventUpdatedAt ' : event . runEventUpdatedAt
131
131
}
132
132
}
133
133
)
You can’t perform that action at this time.
0 commit comments