Skip to content

Commit

Permalink
Merge pull request #259 from actiontech/issue-256-10
Browse files Browse the repository at this point in the history
修复当SQL审核未开启时,审计日志不新增记录的问题
  • Loading branch information
sjjian authored May 31, 2024
2 parents 0fb9507 + c214c75 commit 0f21f13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/dms/biz/cloudbeaver.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ func (cu *CloudbeaverUsecase) GraphQLDistributor() echo.MiddlewareFunc {
return err
}

err := cu.SaveCbLogSqlAuditNotEnable(c, dbService, params, cloudbeaverResBuf)
if err != nil {
cu.log.Error(err)
}

return cu.buildTaskIdAssocDataMasking(cloudbeaverResBuf.Bytes(), dbService.IsMaskingSwitch)
}

Expand Down
4 changes: 4 additions & 0 deletions internal/dms/biz/cloudbeaver_ce.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ func (cu *CloudbeaverUsecase) SaveUiOp(c echo.Context, buf *bytes.Buffer, params
func (cu *CloudbeaverUsecase) SaveCbOperationLogWithoutNext(c echo.Context, dbService *DBService, params *graphql.RawParams, resp cloudbeaver.AuditResults) {
return
}

func (cu *CloudbeaverUsecase) SaveCbLogSqlAuditNotEnable(c echo.Context, dbService *DBService, params *graphql.RawParams, cloudbeaverResBuf *bytes.Buffer) error {
return nil
}

0 comments on commit 0f21f13

Please sign in to comment.