Minor tweaks

This commit is contained in:
rijkvanzanten
2020-07-22 13:49:00 -04:00
parent ab18a8b7df
commit d6fcb34dec
2 changed files with 2 additions and 2 deletions

View File

@@ -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,
};

View File

@@ -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);