Your module could look like:
module.exports = function (databaseDir, callback) {
var result = []
// your code...
result.push()
// more code...
callback(result)
}
Original description, asks that callback(result) is invoked using one parameter, but it actually requires two callback(error, result)
Description should be:
Your module could look like:
module.exports = function (databaseDir, callback) {
var result = []
// your code...
result.push()
// more code...
callback(error, result)
}
This description is wrong:
Original description, asks that
callback(result)
is invoked using one parameter, but it actually requires twocallback(error, result)
Description should be: