Fix missing cursor key order
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -94,6 +94,8 @@ func (c *Connector) CursorKey(orderBy ConnectorOrderField) page.CursorKey {
|
|||||||
switch orderBy {
|
switch orderBy {
|
||||||
case ConnectorOrderFieldCreatedAt:
|
case ConnectorOrderFieldCreatedAt:
|
||||||
return page.CursorKey{ID: c.ID, Value: c.CreatedAt}
|
return page.CursorKey{ID: c.ID, Value: c.CreatedAt}
|
||||||
|
case ConnectorOrderFieldName:
|
||||||
|
return page.CursorKey{ID: c.ID, Value: c.Name}
|
||||||
}
|
}
|
||||||
|
|
||||||
panic(fmt.Sprintf("unsupported order by: %s", orderBy))
|
panic(fmt.Sprintf("unsupported order by: %s", orderBy))
|
||||||
|
|||||||
Reference in New Issue
Block a user