fix: repair healthz mysql check and im tenant creation

- healthz: Scan(new(int)) is not supported by GoFrame, use .One() so
  the mysql check no longer reports a false failure
- im_tenant: set updated_by on insert for both im_tenant and
  im_tenant_config, otherwise new tenant creation fails with
  "Field 'updated_by' doesn't have a default value"
- gitignore: exclude .trae/ local debugging artifacts
This commit is contained in:
Austin
2026-09-16 18:45:37 +08:00
parent fe5c7af7e2
commit 32491e9cdd
4 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func Serve(r *ghttp.Request) {
checks := map[string]string{}
statusCode := http.StatusOK
if err := g.DB().Ctx(ctx).Raw("SELECT 1").Scan(new(int)); err != nil {
if _, err := g.DB().Ctx(ctx).Raw("SELECT 1").One(); err != nil {
checks["mysql"] = err.Error()
statusCode = http.StatusServiceUnavailable
} else {