Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-01-30 14:48:33 -08:00
parent 95649a0849
commit 51f87c7501

View File

@@ -32,18 +32,18 @@ func NewVendorConnection(p *page.Page[*coredata.Vendor]) *VendorConnection {
} }
} }
func NewVendorEdge(f *coredata.Vendor) *VendorEdge { func NewVendorEdge(v *coredata.Vendor) *VendorEdge {
return &VendorEdge{ return &VendorEdge{
Cursor: f.CursorKey(), Cursor: v.CursorKey(),
Node: NewVendor(f), Node: NewVendor(v),
} }
} }
func NewVendor(f *coredata.Vendor) *Vendor { func NewVendor(v *coredata.Vendor) *Vendor {
return &Vendor{ return &Vendor{
ID: f.ID, ID: v.ID,
Name: f.Name, Name: v.Name,
CreatedAt: f.CreatedAt, CreatedAt: v.CreatedAt,
UpdatedAt: f.UpdatedAt, UpdatedAt: v.UpdatedAt,
} }
} }