I get this:
Error: TypeError: callback is not a function
Code:
var async = require('async');
async.waterfall([
(callback) => {
callback(null, 'test');
},
async (value1, callback) => {
const data = await send("http://google.com/search?q="+value1);
callback(null, data); //TypeError: cb is not a function
}
], (err) => {
if (err) throw new Error(err);
});
why can it be an error? even though "callback" is the default function of async.waterfall. is it not possible in the async function I put the async function in it?