mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-12 17:15:37 +00:00
bugfix: All execution tracking IDs must now be unique
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
acl "github.com/OliveTin/OliveTin/internal/acl"
|
||||
config "github.com/OliveTin/OliveTin/internal/config"
|
||||
sv "github.com/OliveTin/OliveTin/internal/stringvariables"
|
||||
"github.com/google/uuid"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"bytes"
|
||||
@@ -123,6 +124,12 @@ func (e *Executor) ExecRequest(req *ExecutionRequest) (*sync.WaitGroup, string)
|
||||
ActionIcon: "💩",
|
||||
}
|
||||
|
||||
_, foundLog := e.Logs[req.TrackingID]
|
||||
|
||||
if foundLog || req.TrackingID == "" {
|
||||
req.TrackingID = uuid.NewString()
|
||||
}
|
||||
|
||||
e.Logs[req.TrackingID] = req.logEntry
|
||||
|
||||
wg := new(sync.WaitGroup)
|
||||
|
||||
Reference in New Issue
Block a user