fix(backend-db): insert syntax
This commit is contained in:
parent
829fffcfb4
commit
59e7167a0a
2 changed files with 1 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ import (
|
|||
"openreplay/backend/services/db/heuristics"
|
||||
)
|
||||
|
||||
|
||||
var pg *cache.PGCache
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue