feat: add community connections activity log types
Adds COMMUNITY_CONNECTIONS_UPDATED, CONNECTION_REQUESTED, CONNECTION_CONFIRMED, and TAG_SUGGESTED to ACTIVITY_TYPES, ACTIVITY_TYPE_DEFAULTS, the Mongoose enum, and activityText formatters. All four default to member visibility.
This commit is contained in:
parent
79d038c724
commit
06ee77592f
3 changed files with 31 additions and 3 deletions
|
|
@ -17,7 +17,11 @@ const ACTIVITY_TYPES = [
|
|||
'role_changed',
|
||||
'admin_profile_update',
|
||||
'slack_invited',
|
||||
'email_sent'
|
||||
'email_sent',
|
||||
'community_connections_updated',
|
||||
'connection_requested',
|
||||
'connection_confirmed',
|
||||
'tag_suggested'
|
||||
]
|
||||
|
||||
const activityLogSchema = new mongoose.Schema({
|
||||
|
|
|
|||
|
|
@ -17,7 +17,11 @@ export const ACTIVITY_TYPES = {
|
|||
ROLE_CHANGED: 'role_changed',
|
||||
ADMIN_PROFILE_UPDATE: 'admin_profile_update',
|
||||
SLACK_INVITED: 'slack_invited',
|
||||
EMAIL_SENT: 'email_sent'
|
||||
EMAIL_SENT: 'email_sent',
|
||||
COMMUNITY_CONNECTIONS_UPDATED: 'community_connections_updated',
|
||||
CONNECTION_REQUESTED: 'connection_requested',
|
||||
CONNECTION_CONFIRMED: 'connection_confirmed',
|
||||
TAG_SUGGESTED: 'tag_suggested'
|
||||
}
|
||||
|
||||
export const ACTIVITY_TYPE_DEFAULTS = {
|
||||
|
|
@ -37,7 +41,11 @@ export const ACTIVITY_TYPE_DEFAULTS = {
|
|||
role_changed: 'admin',
|
||||
admin_profile_update: 'admin',
|
||||
slack_invited: 'admin',
|
||||
email_sent: 'member'
|
||||
email_sent: 'member',
|
||||
community_connections_updated: 'member',
|
||||
connection_requested: 'member',
|
||||
connection_confirmed: 'member',
|
||||
tag_suggested: 'member'
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue