Fix invitation list default order

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-02-12 13:01:49 +04:00
parent a406babf9a
commit 837077d63a
3 changed files with 9 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
/** /**
* @generated SignedSource<<26877e6a0dc423e87108c5b2ea1b11a3>> * @generated SignedSource<<86ac079914ad21b757e635e4e68fc382>>
* @lightSyntaxTransform * @lightSyntaxTransform
* @nogrep * @nogrep
*/ */
@@ -65,7 +65,7 @@ return {
}, },
{ {
"defaultValue": { "defaultValue": {
"direction": "ASC", "direction": "DESC",
"field": "CREATED_AT" "field": "CREATED_AT"
}, },
"kind": "LocalArgument", "kind": "LocalArgument",
@@ -231,6 +231,6 @@ return {
}; };
})(); })();
(node as any).hash = "224d655216572cb18f193cdfcae64172"; (node as any).hash = "5ff19da7145701e33a81275e009c56f7";
export default node; export default node;

View File

@@ -1,5 +1,5 @@
/** /**
* @generated SignedSource<<4122c968a27fbbea7a81d2a87bbc4bc3>> * @generated SignedSource<<ed684165adeff8bdea5a363804ec858f>>
* @lightSyntaxTransform * @lightSyntaxTransform
* @nogrep * @nogrep
*/ */
@@ -62,7 +62,7 @@ v4 = {
}, },
v5 = { v5 = {
"defaultValue": { "defaultValue": {
"direction": "ASC", "direction": "DESC",
"field": "CREATED_AT" "field": "CREATED_AT"
}, },
"kind": "LocalArgument", "kind": "LocalArgument",
@@ -359,16 +359,16 @@ return {
] ]
}, },
"params": { "params": {
"cacheID": "af2ddd3fd12ff396d6e19fa1e630b614", "cacheID": "fa35a507d94c15f0839f276dc42dfd89",
"id": null, "id": null,
"metadata": {}, "metadata": {},
"name": "InvitationListFragment_RefetchQuery", "name": "InvitationListFragment_RefetchQuery",
"operationKind": "query", "operationKind": "query",
"text": "query InvitationListFragment_RefetchQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 20\n $last: Int = null\n $order: InvitationOrder = {direction: ASC, field: CREATED_AT}\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...InvitationListFragment_16fISc\n id\n }\n}\n\nfragment InvitationListFragment_16fISc on Organization {\n invitations(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n ...InvitationListItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment InvitationListItemFragment on Invitation {\n id\n fullName\n email\n role\n status\n createdAt\n acceptedAt\n canDelete: permission(action: \"iam:invitation:delete\")\n}\n" "text": "query InvitationListFragment_RefetchQuery(\n $after: CursorKey = null\n $before: CursorKey = null\n $first: Int = 20\n $last: Int = null\n $order: InvitationOrder = {direction: DESC, field: CREATED_AT}\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...InvitationListFragment_16fISc\n id\n }\n}\n\nfragment InvitationListFragment_16fISc on Organization {\n invitations(first: $first, after: $after, last: $last, before: $before, orderBy: $order) {\n edges {\n node {\n id\n ...InvitationListItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n hasPreviousPage\n startCursor\n }\n }\n id\n}\n\nfragment InvitationListItemFragment on Invitation {\n id\n fullName\n email\n role\n status\n createdAt\n acceptedAt\n canDelete: permission(action: \"iam:invitation:delete\")\n}\n"
} }
}; };
})(); })();
(node as any).hash = "224d655216572cb18f193cdfcae64172"; (node as any).hash = "5ff19da7145701e33a81275e009c56f7";
export default node; export default node;

View File

@@ -22,7 +22,7 @@ const fragment = graphql`
first: { type: "Int", defaultValue: 20 } first: { type: "Int", defaultValue: 20 }
order: { order: {
type: "InvitationOrder" type: "InvitationOrder"
defaultValue: { direction: ASC, field: CREATED_AT } defaultValue: { direction: DESC, field: CREATED_AT }
} }
after: { type: "CursorKey", defaultValue: null } after: { type: "CursorKey", defaultValue: null }
before: { type: "CursorKey", defaultValue: null } before: { type: "CursorKey", defaultValue: null }