update
This commit is contained in:
1 parent
0690285147
commit
5618cd2738
154 files changed
+5021
-3161
No files matched your search
@@ -74,10 +74,10 @@ func (h *LogHandler) CreateSource(c *gin.Context) {
|
||||
configJSON, _ := json.Marshal(req.Config)
|
||||
now := time.Now()
|
||||
item := model.LogSource{
|
||||
Name: req.Name,
|
||||
Type: req.Type,
|
||||
Status: "active",
|
||||
Config: string(configJSON),
|
||||
Name: req.Name,
|
||||
Type: req.Type,
|
||||
Status: "active",
|
||||
Config: string(configJSON),
|
||||
LastSeen: &now,
|
||||
}
|
||||
h.db.Create(&item)
|
||||
|
||||
Reference in new issue
Block a user