Lint all the things
This commit is contained in:
@@ -186,8 +186,10 @@ async function OpenSearchUpdateHandler(req, res) {
|
||||
console.log(` ${insertJobsBulk.body.items.length} Records inserted in ${insertJobsBulk.body.took}.`);
|
||||
if (insertJobsBulk.body.errors) console.error("*** Error while inserting.");
|
||||
}
|
||||
return res.status(200).json({ message: "OpenSearch index updated successfully." });
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
return res.status(500).json({ message: "Error updating OpenSearch index.", error: error.message });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user