Skip to content

Commit

Permalink
[SWIK-743_usergroups] Added groups joined and left to data model and …
Browse files Browse the repository at this point in the history
…route
  • Loading branch information
TBoonX committed Nov 14, 2016
1 parent c785563 commit a26cda1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions application/models/notification.js
Expand Up @@ -20,7 +20,7 @@ const notification = {
activity_id: objectid,
activity_type: {
type: 'string',
enum: ['translate', 'share', 'add', 'edit', 'comment', 'reply', 'use', 'react', 'rate', 'download']
enum: ['translate', 'share', 'add', 'edit', 'comment', 'reply', 'use', 'react', 'rate', 'download', 'joined', 'left']
},
timestamp: {
type: 'object'
Expand All @@ -31,7 +31,7 @@ const notification = {
},
content_kind: {
type: 'string',
enum: ['deck', 'slide']
enum: ['deck', 'slide', 'group']
},
content_name: {
type: 'string'
Expand Down
4 changes: 2 additions & 2 deletions application/routes.js
Expand Up @@ -59,11 +59,11 @@ module.exports = function(server) {
config: {
validate: {
payload: Joi.object().keys({
activity_id: Joi.string(),
activity_id: Joi.string(), //what is this? The _id is created by the database. It should not be possbile for clients to create their own keys...
activity_type: Joi.string(),
user_id: Joi.string(),
content_id: Joi.string(),
content_kind: Joi.string().valid('deck', 'slide'),
content_kind: Joi.string().valid('deck', 'slide', 'group'),
content_name: Joi.string(),
content_owner_id: Joi.string(),
subscribed_user_id: Joi.string(),
Expand Down

0 comments on commit a26cda1

Please sign in to comment.