From 26d293ed0f2f16ad0bf837c4418972626d909779 Mon Sep 17 00:00:00 2001 From: les Date: Tue, 3 Nov 2020 23:37:28 +0100 Subject: [PATCH] minor --- docs/docker/postgres/docker-compose.yml | 1 + server/migrations/20201103161446-notification_queue.js | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/docker/postgres/docker-compose.yml b/docs/docker/postgres/docker-compose.yml index 05417aad..664bd894 100644 --- a/docs/docker/postgres/docker-compose.yml +++ b/docs/docker/postgres/docker-compose.yml @@ -11,6 +11,7 @@ services: - POSTGRES_USER=gancio - POSTGRES_DB=gancio - POSTGRES_PASSWORD=gancio + - PGDATA=/var/lib/postgresql/data restart: always ports: - 5432:5432 diff --git a/server/migrations/20201103161446-notification_queue.js b/server/migrations/20201103161446-notification_queue.js index 87e5faa6..2c008528 100644 --- a/server/migrations/20201103161446-notification_queue.js +++ b/server/migrations/20201103161446-notification_queue.js @@ -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) => {