Skip to content

Commit

Permalink
Merge pull request #2327 from actiontech/issue-1426
Browse files Browse the repository at this point in the history
fix: offline audit cause panic
  • Loading branch information
ColdWaterLW authored Mar 29, 2024
2 parents a4c4a11 + 4008849 commit 1bf9460
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sqle/api/controller/v1/sql_dev_record_ce.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ func getSqlDEVRecordList(c echo.Context) error {
return ErrCommunityEditionNotSupportSqlDevRecord
}

func SyncSqlDevRecord(ctx context.Context, task *model.Task, creator string) {}
func SyncSqlDevRecord(ctx context.Context, task *model.Task, projectId, creator string) {}
2 changes: 1 addition & 1 deletion sqle/api/controller/v2/sql_audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func DirectAuditFiles(c echo.Context) error {
if err != nil {
return controller.JSONBaseErrorReq(c, err)
}
go v1.SyncSqlDevRecord(context.TODO(), task, user.Name)
go v1.SyncSqlDevRecord(context.TODO(), task, projectUid, user.Name)
}

return c.JSON(http.StatusOK, DirectAuditResV2{
Expand Down

0 comments on commit 1bf9460

Please sign in to comment.