mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-02 14:21:28 +03:00
Added notifications - (WIP, boilerplate)
This commit is contained in:
13
backend/notifications.js
Normal file
13
backend/notifications.js
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user