feat: add oliver elastic support; update db(sqlite)
This commit is contained in:
@ -45,7 +45,7 @@ func NewOpLog(ctx context.Context) nf.HandlerFunc {
|
||||
return
|
||||
}
|
||||
|
||||
if err = db.New(tool.Timeout(10)).
|
||||
if err = db.Default.Session(tool.Timeout(10)).
|
||||
Model(&model.OpLog{}).
|
||||
Create(&list).
|
||||
Error; err != nil {
|
||||
|
Reference in New Issue
Block a user