Respond to PR feedback.

This commit is contained in:
Sam Rose 2024-09-26 16:21:34 +01:00
parent 743140eeae
commit aa738659ae
No known key found for this signature in database
2 changed files with 14 additions and 17 deletions

View File

@ -134,13 +134,12 @@ export async function basicProcessing({
}
let columns: string[] = Object.keys(table.schema)
if (!isCalculationView) {
if (!sqs) {
if (!sqs && !isCalculationView) {
thisRow._id = generateIdForRow(row, table, isLinked)
thisRow.tableId = table._id
thisRow._rev = "rev"
columns = columns.concat(PROTECTED_EXTERNAL_COLUMNS)
} else {
} else if (!isCalculationView) {
columns = columns.concat(PROTECTED_EXTERNAL_COLUMNS)
for (let internalColumn of [...PROTECTED_INTERNAL_COLUMNS, ...columns]) {
thisRow[internalColumn] = extractFieldValue({
@ -151,7 +150,6 @@ export async function basicProcessing({
})
}
}
}
for (let col of columns) {
const schema: FieldSchema | undefined = table.schema[col]
if (schema?.type !== FieldType.LINK) {

View File

@ -1,7 +1,6 @@
import { context, db } from "@budibase/backend-core"
import { Row, Table, ViewV2 } from "@budibase/types"
import sdk from "../../../sdk"
import cloneDeep from "lodash/fp/cloneDeep"
import { finaliseRow } from "../../../api/controllers/row/staticFormula"
import {
inputProcessing,