diff --git a/index.js b/index.js index 85fd920..5443f95 100644 --- a/index.js +++ b/index.js @@ -23,11 +23,15 @@ const save_data = async ip => { }); await item.save(); } catch (error) { + console.log("ERROR z CATCHA => " + error); const item = new dbSchema({ ip, status: "Urządzenie przestało działać - prawdopodobnie brak zasilania" }); - await item.save(); + item + .save() + .then() + .catch(); } };