File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/serverless/microservices/nodejs/analytics/workers Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ CROWD_DB_WRITE_HOST="db"
20
20
CROWD_SEARCH_ENGINE_HOST="http://search-engine:7700"
21
21
22
22
# CubeJS settings
23
- CROWD_CUBEJS_URL="http://cubejs:4000"
23
+ CROWD_CUBEJS_URL="http://cubejs:4000/cubejs-api/v1 "
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ CROWD_DB_PASSWORD=example
43
43
CROWD_DB_DATABASE=crowd-web
44
44
45
45
# CubeJS settings
46
- CROWD_CUBEJS_URL=http://localhost:4000
46
+ CROWD_CUBEJS_URL=http://localhost:4000/cubejs-api/v1
47
47
CROWD_CUBEJS_JWT_SECRET=137ea167812145c6d77452a58d7dd29b
48
48
CROWD_CUBEJS_JWT_EXPIRY=2h
49
49
Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ async function weeklyAnalyticsEmailsWorker(tenantId: string): Promise<AnalyticsE
57
57
c . platformPretty = platformDisplayNames [ c . platform ]
58
58
59
59
const conversationLazyLoaded = await conversationService . findById ( c . id )
60
- const lastActivity =
60
+
61
+ c . lastActivity =
61
62
conversationLazyLoaded . activities [ conversationLazyLoaded . activities . length - 1 ]
62
- c . lastActivity = lastActivity . get ( { plain : true } )
63
- c . lastActivity . username = lastActivity . member . username [ c . platform ]
63
+ c . lastActivity . username = c . lastActivity . member . username [ c . platform ]
64
64
65
65
if ( c . lastActivity . body ) {
66
66
c . lastActivity . body = convertHtmlToText ( c . lastActivity . body )
You can’t perform that action at this time.
0 commit comments