Fix double declaration of 'result'

This commit is contained in:
Daniel García Aubert 2017-09-15 14:48:54 +02:00
parent d4bb4edd1d
commit 64c3e68303

View File

@ -108,13 +108,13 @@ module.exports = class Formula extends BaseDataview {
return callback(null, formulaSql);
}
format (result) {
format (res) {
const {
result = 0,
nulls_count = 0,
nans_count = 0,
infinities_count = 0
} = result.rows[0] || {};
} = res.rows[0] || {};
return {
operation: this.operation,