cleaning
This commit is contained in:
@@ -10,7 +10,6 @@ moment.locale('it')
|
||||
const botController = {
|
||||
bot: null,
|
||||
async initialize() {
|
||||
console.error('dentro bot inizialiteds')
|
||||
const settings = await settingsController.settings()
|
||||
if (!settings.mastodon_auth || !settings.mastodon_auth.access_token) return
|
||||
const mastodon_auth = settings.mastodon_auth
|
||||
|
||||
@@ -6,8 +6,6 @@ const ics = require('ics')
|
||||
const exportController = {
|
||||
|
||||
async export(req, res) {
|
||||
console.log('type ', req.params.type)
|
||||
console.error(req)
|
||||
const type = req.params.type
|
||||
const tags = req.query.tags
|
||||
const places = req.query.places
|
||||
|
||||
@@ -206,7 +206,6 @@ const userController = {
|
||||
|
||||
async update(req, res) {
|
||||
const user = await User.findByPk(req.body.id)
|
||||
console.error(req.body.id)
|
||||
if (user) {
|
||||
if (!user.is_active && req.body.is_active) {
|
||||
await mail.send(user.email, 'confirm', { user, config: config.SHARED_CONF })
|
||||
|
||||
Reference in New Issue
Block a user