Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit b61e6b5

Browse files
committed
feature/system-notifcations - added active field to system notifications
1 parent 8795c73 commit b61e6b5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

server/models/system-notifications.model.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = function (app) {
1111
slot: { type: String },
1212
showOnce: { type: Boolean, default: true },
1313
requireConfirmation: { type: Boolean, default: false },
14+
active: { type: Boolean, default: true },
1415
createdAt: { type: Date, default: Date.now },
1516
updatedAt: { type: Date, default: Date.now },
1617
wasSeeded: { type: Boolean }

server/services/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const invites = require('./invites/invites.service.js');
1919
const usersCandos = require('./users-candos/users-candos.service.js');
2020
const search = require('./search/search.service.js');
2121
const usersettings = require('./usersettings/usersettings.service.js');
22+
const systemNotifications = require('./system-notifications/system-notifications.service.js');
2223

2324
module.exports = function () {
2425
const app = this; // eslint-disable-line no-unused-vars
@@ -43,4 +44,5 @@ module.exports = function () {
4344
app.configure(usersCandos);
4445
app.configure(search);
4546
app.configure(usersettings);
47+
app.configure(systemNotifications);
4648
};

0 commit comments

Comments
 (0)