chore: stop casting IDs as number

This commit is contained in:
Ali BARIN
2022-01-29 16:36:14 +01:00
committed by Ömer Faruk Aydın
parent c6e2b94128
commit 131d33916a
11 changed files with 69 additions and 137 deletions

View File

@@ -75,8 +75,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
}, },
@@ -98,8 +97,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -120,8 +118,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
} }
@@ -134,8 +131,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -146,8 +142,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -172,8 +167,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -195,8 +189,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -217,8 +210,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
} }

View File

@@ -75,8 +75,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
}, },
@@ -98,8 +97,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -120,8 +118,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
} }
@@ -134,8 +131,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -146,8 +142,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -172,8 +167,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -195,8 +189,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -217,8 +210,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
} }

View File

@@ -75,8 +75,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
}, },
@@ -98,8 +97,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -120,8 +118,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
} }
@@ -134,8 +131,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -146,8 +142,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -172,8 +167,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -195,8 +189,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -217,8 +210,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
} }

View File

@@ -75,8 +75,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
}, },
@@ -98,8 +97,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -120,8 +118,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
} }
@@ -134,8 +131,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -146,8 +142,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -172,8 +167,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -195,8 +189,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -217,8 +210,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
} }

View File

@@ -127,8 +127,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
} }
@@ -141,8 +140,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -153,8 +151,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -195,8 +192,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
} }

View File

@@ -127,8 +127,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
} }
@@ -141,8 +140,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -153,8 +151,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -195,8 +192,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
} }

View File

@@ -63,8 +63,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
} }
@@ -77,8 +76,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -89,8 +87,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -115,8 +112,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
} }

View File

@@ -75,8 +75,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
}, },
@@ -98,8 +97,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -120,8 +118,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
} }
@@ -134,8 +131,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -146,8 +142,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -172,8 +167,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -195,8 +189,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -217,8 +210,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
} }

View File

@@ -75,8 +75,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
}, },
@@ -98,8 +97,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -120,8 +118,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
} }
@@ -134,8 +131,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -146,8 +142,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -172,8 +167,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -195,8 +189,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -217,8 +210,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
} }

View File

@@ -75,8 +75,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
}, },
@@ -98,8 +97,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -120,8 +118,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{createConnection.id}", "value": "{createConnection.id}"
"type": "integer"
} }
] ]
} }
@@ -134,8 +131,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -146,8 +142,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -172,8 +167,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
}, },
@@ -195,8 +189,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
}, },
{ {
"name": "data", "name": "data",
@@ -217,8 +210,7 @@
"arguments": [ "arguments": [
{ {
"name": "id", "name": "id",
"value": "{connection.id}", "value": "{connection.id}"
"type": "integer"
} }
] ]
} }

View File

@@ -19,7 +19,7 @@ import * as URLS from 'config/urls';
export default function EditorLayout(): React.ReactElement { export default function EditorLayout(): React.ReactElement {
const { flowId } = useParams(); const { flowId } = useParams();
const formatMessage = useFormatMessage(); const formatMessage = useFormatMessage();
const { data } = useQuery(GET_FLOW, { variables: { id: Number(flowId) }}); const { data } = useQuery(GET_FLOW, { variables: { id: flowId }});
const flow: Flow = data?.getFlow; const flow: Flow = data?.getFlow;
return ( return (