आपका insertRowInBLD
फ़ंक्शन को एक Promise
लौटाना होता है उदाहरण के बजाय undefined
अब के रूप में। Async.series
undefined
की एक सरणी पारित किया जा रहा है ।
यह।
function fillBLD() {
async.series(
[
insertRowInBLD('R01', 'Disclosure of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
insertRowInBLD('R02', 'Corruption of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
insertRowInBLD('R03', 'Unavailability of data due to deliberate action by internal actor', 'E. Not significant', 'Partially effective', '', '', '', '', ''),
insertRowInBLD('R04', 'Disclosure of data due to attack of the communications link by internal/external actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
insertRowInBLD('R05', 'Corruption of data due to attack of the communications link by internal/external actor', 'E. Not significant', 'Partially effective', 'Low', '', '', '', ''),
]
);
}
वास्तव में यही है।
function fillBLD() {
async.series(
[
undefined,
undefined,
undefined,
undefined,
undefined
]
);
}