1
0
Fork 0
mirror of synced 2024-05-16 18:33:53 +12:00
This commit is contained in:
Michael Drury 2024-04-16 17:05:09 +01:00
parent 7d2861718a
commit ccb56c8788

View file

@ -121,7 +121,7 @@ async function removeManyToManyRelationships(
filters, filters,
meta: { meta: {
table, table,
} },
}) })
} else { } else {
return [] return []
@ -138,7 +138,7 @@ async function removeOneToManyRelationships(rowId: string, table: Table) {
filters, filters,
meta: { meta: {
table, table,
} },
}) })
} else { } else {
return [] return []
@ -256,7 +256,7 @@ export class ExternalRequest<T extends Operation> {
filters: buildFilters(rowId, {}, table), filters: buildFilters(rowId, {}, table),
meta: { meta: {
table, table,
} },
}) })
if (Array.isArray(response) && response.length > 0) { if (Array.isArray(response) && response.length > 0) {
return response[0] return response[0]
@ -406,7 +406,7 @@ export class ExternalRequest<T extends Operation> {
}, },
meta: { meta: {
table, table,
} },
}) })
// this is the response from knex if no rows found // this is the response from knex if no rows found
const rows: Row[] = const rows: Row[] =
@ -485,7 +485,7 @@ export class ExternalRequest<T extends Operation> {
filters: buildFilters(id, {}, linkTable), filters: buildFilters(id, {}, linkTable),
meta: { meta: {
table, table,
} },
}) })
) )
} else { } else {