Skip to content

Commit

Permalink
fix(analytics): support for postgres (#4711)
Browse files Browse the repository at this point in the history
Co-authored-by: Laurent Leclerc Poulin <laurentlp@users.noreply.github.com>
  • Loading branch information
sebburon and laurentlp committed Mar 16, 2021
1 parent dcab2a5 commit 6ff7b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/analytics/src/backend/db.ts
Expand Up @@ -149,7 +149,7 @@ export default class Database {
.where({ botId })
.andWhere(this.knex.date.isBetween('lastSeenOn', startDate, endDate))
.groupBy(['lastSeenOn', 'channel'])
.andWhereRaw('lastSeenOn <> createdOn')
.andWhereRaw('"lastSeenOn" <> "createdOn"')

let queryActiveUsers = this.knex('bot_chat_users')
.where({ botId })
Expand Down

0 comments on commit 6ff7b04

Please sign in to comment.