682e6a658e
> helpers/poll-has-users.js should pass jscs. > requireSemicolons: Missing semicolon after statement at helpers/poll-has-users.js is incostitent with JSHint which complains about this semicolon other ones should be fixed by rewrite of create/options
9 lines
198 B
JavaScript
9 lines
198 B
JavaScript
export default function(requestBody, id) {
|
|
let poll = JSON.parse(requestBody);
|
|
poll.poll.id = id;
|
|
return [
|
|
200,
|
|
{ 'Content-Type': 'application/json' },
|
|
JSON.stringify(poll)
|
|
];
|
|
}
|