mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
20 lines
811 B
JavaScript
20 lines
811 B
JavaScript
'use strict'
|
|
|
|
module.exports = {
|
|
up: (queryInterface, Sequelize) => {
|
|
return queryInterface.bulkInsert('notifications', [
|
|
|
|
// send AP message
|
|
{ action: 'Create', type: 'ap', filters: '{ "is_visible": true }', createdAt: new Date(), updatedAt: new Date() },
|
|
{ action: 'Update', type: 'ap', filters: '{ "is_visible": true }', createdAt: new Date(), updatedAt: new Date() },
|
|
{ action: 'Delete', type: 'ap', filters: '{ "is_visible": true }', createdAt: new Date(), updatedAt: new Date() },
|
|
|
|
// send anon event to admin
|
|
{ action: 'Create', type: 'admin_email', filters: '{ "is_visible": false }', createdAt: new Date(), updatedAt: new Date() }
|
|
]).catch(e => { })
|
|
},
|
|
|
|
down: (queryInterface, Sequelize) => {
|
|
return queryInterface.bulkDelete('notification')
|
|
}
|
|
}
|