Skip to content
Snippets Groups Projects
Commit dd50320a authored by Yoan VALLET's avatar Yoan VALLET
Browse files

feat: unlock ecogesture for on going challenge

parent 28f9d7f4
No related branches found
No related tags found
1 merge request!15Merge Dev to Master
......@@ -616,12 +616,12 @@ export default class ChallengeManager implements IChallengeManager {
.find(USERCHALLENGE_DOCTYPE)
.where({
state: {
$eq: ChallengeState.FINISHED,
$lte: ChallengeState.FINISHED,
},
})
.include(relationShipsToInclude)
)
console.log(ecogestures)
if (ecogestures.data.length === 0) return null
const unlocked = ecogestures.data.map(
x => x.relationships.selectedEcogestures.data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment