mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix passing transaction to certain sections of relational update
Fixes #598
This commit is contained in:
@@ -263,7 +263,7 @@ export default async function getASTFromQuery(
|
||||
async function getFieldsInCollection(collection: string) {
|
||||
const columns = (await schemaInspector.columns(collection)).map((column) => column.column);
|
||||
const fields = (
|
||||
await database.select('field').from('directus_fields').where({ collection })
|
||||
await knex.select('field').from('directus_fields').where({ collection })
|
||||
).map((field) => field.field);
|
||||
|
||||
const fieldsInCollection = [
|
||||
|
||||
Reference in New Issue
Block a user