From 33c396fb745dd58a24e3e4c3fc42762cb87605b3 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 30 Oct 2023 22:04:07 -0400 Subject: [PATCH] fix cmd `gen pbentity` for generating go orm files for database postgres (#3105) --- cmd/gf/internal/cmd/genpbentity/genpbentity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gf/internal/cmd/genpbentity/genpbentity.go b/cmd/gf/internal/cmd/genpbentity/genpbentity.go index caf06556b..83d9e32bd 100644 --- a/cmd/gf/internal/cmd/genpbentity/genpbentity.go +++ b/cmd/gf/internal/cmd/genpbentity/genpbentity.go @@ -198,7 +198,7 @@ func doGenPbEntityForArray(ctx context.Context, index int, in CGenPbEntityInput) if len(match) == 3 { gdb.AddConfigNode(tempGroup, gdb.ConfigNode{ Type: gstr.Trim(match[1]), - Link: gstr.Trim(match[2]), + Link: in.Link, }) db, _ = gdb.Instance(tempGroup) }