This commit is contained in:
lesion
2019-03-20 01:52:48 +01:00
parent f44a78c4e9
commit 3fe3a478b7
10 changed files with 29 additions and 21 deletions

View File

@@ -34,8 +34,8 @@ const Notification = db.define('notification', {
}
})
Notification.findOrCreate({ where: { type: 'mastodon' } })
Notification.findOrCreate({ where: { type: 'admin_email' } })
Notification.findOrCreate({ where: { type: 'mastodon', filters: { is_visible: true } } })
Notification.findOrCreate({ where: { type: 'admin_email', filters: { is_visible: false } } })
const Place = db.define('place', {
name: { type: Sequelize.STRING, unique: true, index: true },