Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 6ba3ab0

Browse files
omit tags when syncing forward
1 parent af55511 commit 6ba3ab0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/services/challengeService.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ const challengePropertiesToOmitFromDynamo = [
3131
'submissionStartDate',
3232
'submissionEndDate',
3333
'type',
34-
'track'
34+
'track',
35+
'tags'
3536
]
3637

3738
async function save (challenge) {
@@ -88,7 +89,7 @@ async function updateChallenge (challenge) {
8889
id: challenge.id,
8990
body: {
9091
doc: {
91-
..._.omit(challenge, ['created', 'createdBy']),
92+
..._.omit(challenge, ['created', 'createdBy', 'tags']),
9293
groups: _.filter(challenge.groups, g => _.toString(g).toLowerCase() !== 'null')
9394
}
9495
}

0 commit comments

Comments
 (0)