Missing call to super class in constructor

This commit is contained in:
Daniel García Aubert
2017-09-15 10:59:07 +02:00
parent c00a93f414
commit 9771979b8f
+2
View File
@@ -51,6 +51,8 @@ const TYPE = 'formula';
*/
module.exports = class Formula extends BaseDataview {
constructor (query, options = {}, queries = {}) {
super();
if (typeof options.operation !== 'string') {
throw new Error(`Formula expects 'operation' in dataview options`);
}