Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Adapt JATOS export to new data format
Browse files Browse the repository at this point in the history
Many thanks to Alessandra Souza for pointing me to this!
  • Loading branch information
FelixHenninger committed Sep 29, 2020
1 parent 26bd9a8 commit 58b5494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/builder/src/logic/io/export/modifiers/jatos.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ const addJatosIntegration = (state) => {

// TODO: This is probably not the most elegant way to
// achieve integration -- possibly a plugin would be nicer?
state.components.root.messageHandlers.push([{
state.components.root.messageHandlers.push({
title: 'JATOS integration',
message: 'epilogue',
code: stripIndent`
var resultJson = study.options.datastore.exportJson();
jatos.submitResultData(resultJson, jatos.startNextComponent);
`
}])
})

return state
}
Expand Down

0 comments on commit 58b5494

Please sign in to comment.