This commit is contained in:
les
2020-11-03 23:37:28 +01:00
parent 8629fb1e01
commit 26d293ed0f
2 changed files with 6 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ services:
- POSTGRES_USER=gancio
- POSTGRES_DB=gancio
- POSTGRES_PASSWORD=gancio
- PGDATA=/var/lib/postgresql/data
restart: always
ports:
- 5432:5432

View File

@@ -5,13 +5,13 @@ module.exports = {
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() },
{ 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 => { })
{ action: 'Create', type: 'admin_email', filters: '{ "is_visible": false }', createdAt: new Date(), updatedAt: new Date() }
]).catch(e => { console.error(e) })
},
down: (queryInterface, Sequelize) => {