diff --git a/db/gfdb/gfdb.go b/db/gfdb/gfdb.go index 0e2da34..72508a6 100644 --- a/db/gfdb/gfdb.go +++ b/db/gfdb/gfdb.go @@ -188,7 +188,7 @@ func insertHook(ctx context.Context, in *gdb.HookInsertInput) (result sql.Result } } if _, ok := in.Data[i]["creator"]; ok { - if g.IsEmpty(in.Data[i]["tenant_id"]) { + if g.IsEmpty(in.Data[i]["creator"]) { if !g.IsEmpty(userInfo.UserName) { in.Data[i]["creator"] = userInfo.UserName } else {