Fix record version not uptodate in the store

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-05 10:32:30 +01:00
parent bb6c4b50de
commit 552e4ecc7a
2 changed files with 13 additions and 4 deletions

View File

@@ -42,6 +42,7 @@ const UpdatePolicyMutation = graphql`
name name
content content
status status
version
} }
} }
} }

View File

@@ -1,5 +1,5 @@
/** /**
* @generated SignedSource<<beb534549abc2d40828f7a5d0aaa96e6>> * @generated SignedSource<<ecd63bc4d12703ce647666a146598810>>
* @lightSyntaxTransform * @lightSyntaxTransform
* @nogrep * @nogrep
*/ */
@@ -27,6 +27,7 @@ export type UpdatePolicyPageMutation$data = {
readonly id: string; readonly id: string;
readonly name: string; readonly name: string;
readonly status: PolicyStatus; readonly status: PolicyStatus;
readonly version: number;
}; };
}; };
}; };
@@ -93,6 +94,13 @@ v1 = [
"kind": "ScalarField", "kind": "ScalarField",
"name": "status", "name": "status",
"storageKey": null "storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "version",
"storageKey": null
} }
], ],
"storageKey": null "storageKey": null
@@ -119,16 +127,16 @@ return {
"selections": (v1/*: any*/) "selections": (v1/*: any*/)
}, },
"params": { "params": {
"cacheID": "712914b4586e7c5f722f908c8d64bbc1", "cacheID": "ca013100ee6a0bf7c4e572474f1ba088",
"id": null, "id": null,
"metadata": {}, "metadata": {},
"name": "UpdatePolicyPageMutation", "name": "UpdatePolicyPageMutation",
"operationKind": "mutation", "operationKind": "mutation",
"text": "mutation UpdatePolicyPageMutation(\n $input: UpdatePolicyInput!\n) {\n updatePolicy(input: $input) {\n policy {\n id\n name\n content\n status\n }\n }\n}\n" "text": "mutation UpdatePolicyPageMutation(\n $input: UpdatePolicyInput!\n) {\n updatePolicy(input: $input) {\n policy {\n id\n name\n content\n status\n version\n }\n }\n}\n"
} }
}; };
})(); })();
(node as any).hash = "25a2ddb0078d821584c5497227a6d364"; (node as any).hash = "c17a1ff9bf786b0e251374a14fff0086";
export default node; export default node;