mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Minor tweaks
This commit is contained in:
@@ -55,7 +55,7 @@ export const readOne = async (collection: string, field: string) => {
|
||||
const data = {
|
||||
collection: column.table,
|
||||
field: column.name,
|
||||
database: column,
|
||||
database: column || null,
|
||||
system: fieldInfo || null,
|
||||
};
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ export async function processValues(
|
||||
.whereNotNull('special');
|
||||
|
||||
await Promise.all(
|
||||
payload.map(async (record: any) => {
|
||||
processedPayload.map(async (record: any) => {
|
||||
await Promise.all(
|
||||
specialFieldsInCollection.map(async (field) => {
|
||||
record[field.field] = await processField(field, record, operation);
|
||||
|
||||
Reference in New Issue
Block a user