feat: skip without websiteId
This commit is contained in:
parent
36b6a7774e
commit
02f9dd951c
1 changed files with 4 additions and 0 deletions
|
|
@ -117,6 +117,10 @@ func (h *UmamiFeeder) reportEventToUmami(ctx context.Context, event *UmamiPayloa
|
|||
websiteId = website.ID
|
||||
h.debug("created website for: %s", website.Domain)
|
||||
}
|
||||
if websiteId == "" {
|
||||
h.error("skip tracking, websiteId is unknown: " + hostname)
|
||||
return
|
||||
}
|
||||
event.body.Payload.Website = websiteId
|
||||
|
||||
h.debug("sending tracking request %v %v", event.body, event.headers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue