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

Commit c993874

Browse files
Prevent changing the created & createdBy on sync
1 parent 1bcb51c commit c993874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/challengeService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function updateChallenge (challenge) {
8787
id: challenge.id,
8888
body: {
8989
doc: {
90-
...challenge,
90+
..._.omit(challenge, ['created', 'createdBy']),
9191
groups: _.filter(challenge.groups, g => _.toString(g).toLowerCase() !== 'null')
9292
}
9393
}

0 commit comments

Comments
 (0)