Initial commit

This commit is contained in:
Arnaud Nelissen
2021-07-16 10:18:13 +02:00
commit 3af7ddab06
5894 changed files with 590836 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
const dbcontroller = require('../db');
const createAlerts = async function (data) {
try {
data.inputsAlerts.forEach(async value => {
await dbcontroller.addAlert(data.id, data.msn, value)
});
return { success: true }
} catch (e) {
throw new Error(e.message)
}
}
module.exports = {
createAlerts,
}