Added notifications - (WIP, boilerplate)

This commit is contained in:
Isaac Abadi
2022-11-24 14:54:08 -05:00
parent 1c6b7815fe
commit 5e08ca004a
16 changed files with 333 additions and 4 deletions

13
backend/notifications.js Normal file
View File

@@ -0,0 +1,13 @@
const utils = require('./utils');
const logger = require('./logger');
const db_api = require('./db');
exports.sendNotification = async () => {
// TODO: hook into third party service
const notification = {}
await db_api.insertRecordIntoTable('notifications', notification);
return notification;
}