1
0
Fork 0
mirror of synced 2024-06-14 08:24:48 +12:00

prevent sql relationship delete from erroring

This commit is contained in:
Martin McKeaveney 2021-08-31 19:59:49 +01:00
parent 2887a42f7a
commit 0df6d24edf
4 changed files with 1125 additions and 21 deletions

View file

@ -96,7 +96,7 @@
"lodash": "4.17.21",
"mongodb": "3.6.3",
"mssql": "6.2.3",
"mysql": "2.18.1",
"mysql": "^2.18.1",
"node-fetch": "2.6.0",
"open": "7.3.0",
"pg": "8.5.1",

View file

@ -264,7 +264,7 @@ module External {
}
outputProcessing(
rows: Row[],
rows: Row[] = [],
table: Table,
relationships: RelationshipsJson[]
) {
@ -524,7 +524,7 @@ module External {
// can't really use response right now
const response = await makeExternalQuery(appId, json)
// handle many to many relationships now if we know the ID (could be auto increment)
if (processed.manyRelationships) {
if (processed.manyRelationships && response) {
await this.handleManyRelationships(
response[0],
processed.manyRelationships

File diff suppressed because it is too large Load diff

View file

@ -29,6 +29,8 @@
valueColumn,
customOptions
)
$: console.log(options)
</script>
<Field