Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/.env.dist.composed
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ CROWD_DB_WRITE_HOST="db"
CROWD_SEARCH_ENGINE_HOST="http://search-engine:7700"

# CubeJS settings
CROWD_CUBEJS_URL="http://cubejs:4000"
CROWD_CUBEJS_URL="http://cubejs:4000/cubejs-api/v1"
2 changes: 1 addition & 1 deletion backend/.env.dist.local
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ CROWD_DB_PASSWORD=example
CROWD_DB_DATABASE=crowd-web

# CubeJS settings
CROWD_CUBEJS_URL=http://localhost:4000
CROWD_CUBEJS_URL=http://localhost:4000/cubejs-api/v1
CROWD_CUBEJS_JWT_SECRET=137ea167812145c6d77452a58d7dd29b
CROWD_CUBEJS_JWT_EXPIRY=2h

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ async function weeklyAnalyticsEmailsWorker(tenantId: string): Promise<AnalyticsE
c.platformPretty = platformDisplayNames[c.platform]

const conversationLazyLoaded = await conversationService.findById(c.id)
const lastActivity =

c.lastActivity =
conversationLazyLoaded.activities[conversationLazyLoaded.activities.length - 1]
c.lastActivity = lastActivity.get({ plain: true })
c.lastActivity.username = lastActivity.member.username[c.platform]
c.lastActivity.username = c.lastActivity.member.username[c.platform]

if (c.lastActivity.body) {
c.lastActivity.body = convertHtmlToText(c.lastActivity.body)
Expand Down