Verified Commit d04e14b6 authored by les's avatar les
Browse files

cleaning

parent 11e026e0
......@@ -38,7 +38,6 @@ module.exports = {
// sync db
const db = require('./api/models/index')
const User = require('./api/models/user')
// const Notification = require('./api/models/notification')
const users = await User.findAll()
if (users.length) {
consola.warn(' ⚠ Non empty db! Please move your current db elsewhere than retry.')
......@@ -54,28 +53,6 @@ module.exports = {
is_active: true
})
// add default notification
consola.info('Add default notification')
// await db.announcement.create({
// visible: true,
// title: 'Welcome to Gancio',
// announcement: 'TODO: HTML First presentation post'
// })
// try {
// // send confirmed events to mastodon
// await Notification.create({ action: 'Create', type: 'ap', filters: '{ "is_visible": true }' })
// await Notification.create({ action: 'Update', type: 'ap', filters: '{ "is_visible": true }' })
// await Notification.create({ action: 'Delete', type: 'ap', filters: '{ "is_visible": true }' })
// // // send anon events to admin
// await Notification.create({ action: 'Create', type: 'admin_email', filters: '{ "is_visible": false }' })
// }
// TODO email's notifications
// await db.notification.create({ action: 'Create', type: 'email', filters: { is_visible: true } })
// close db connection
await db.close()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment