Skip to content

Commit

Permalink
getHistory callback must be async - fixes #1386
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed Aug 21, 2023
1 parent fb9f7ca commit 9e5ac60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/public/google-blockly/own/blocks_sendto.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ Blockly.JavaScript['sendto_gethistory'] = function(block) {
(step > 0 && aggregate !== 'none' ? Blockly.JavaScript.prefixLines(`step: ${step},`, Blockly.JavaScript.INDENT) + '\n' : '') +
Blockly.JavaScript.prefixLines(`aggregate: '${aggregate}',`, Blockly.JavaScript.INDENT) + '\n' +
Blockly.JavaScript.prefixLines(`removeBorderValues: true`, Blockly.JavaScript.INDENT) + '\n' +
`}, (err, result) => {\n` +
`}, async (err, result) => {\n` +
Blockly.JavaScript.prefixLines(`if (err) {`, Blockly.JavaScript.INDENT) + '\n' +
Blockly.JavaScript.prefixLines(`console.error(err);`, Blockly.JavaScript.INDENT + Blockly.JavaScript.INDENT) + '\n' +
(statement ? Blockly.JavaScript.prefixLines(`} else {`, Blockly.JavaScript.INDENT) + '\n' : '') +
Expand Down

0 comments on commit 9e5ac60

Please sign in to comment.