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{
Cursor: f.CursorKey(),
Node: NewVendor(f),
Cursor: v.CursorKey(),
Node: NewVendor(v),
}
}
func NewVendor(f *coredata.Vendor) *Vendor {
func NewVendor(v *coredata.Vendor) *Vendor {
return &Vendor{
ID: f.ID,
Name: f.Name,
CreatedAt: f.CreatedAt,
UpdatedAt: f.UpdatedAt,
ID: v.ID,
Name: v.Name,
CreatedAt: v.CreatedAt,
UpdatedAt: v.UpdatedAt,
}
}