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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -19,7 +19,7 @@ import * as URLS from 'config/urls';
export default function EditorLayout(): React.ReactElement {
const { flowId } = useParams();
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;
return (