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 createEvents = async function (data) {
try {
data.events.forEach(async event => {
await dbcontroller.addEvent(data.id, data.msn, event)
});
return { success: true }
} catch (e) {
throw new Error(e.message)
}
}
module.exports = {
createEvents,
}