fix(backend-db): insert syntax

This commit is contained in:
ShiKhu 2021-07-22 12:12:54 +08:00
parent 829fffcfb4
commit 59e7167a0a
2 changed files with 1 additions and 2 deletions

View file

@ -111,8 +111,6 @@ func (conn *Conn) InsertWebClickEvent(sessionID uint64, e *ClickEvent) error {
FROM events.pages
WHERE session_id = $1 AND timestamp <= $3 ORDER BY timestamp DESC LIMIT 1
)
VALUES
($1, $2, $3, NULLIF($4, ''), $5, SELECT)
`,
sessionID, e.MessageID, e.Timestamp, e.Label, e.Selector,
); err != nil {

View file

@ -17,6 +17,7 @@ import (
"openreplay/backend/services/db/heuristics"
)
var pg *cache.PGCache
func main() {